473,396 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

set icon and titlebar name using vba



I want to set access application icon and titlebar name using VBA.

*** Sent via Developersdex http://www.developersdex.com ***
Oct 25 '06 #1
1 4107

x taol wrote:
I want to set access application icon and titlebar name using VBA.

*** Sent via Developersdex http://www.developersdex.com ***
Straight from Access VBA Help
The following example sets the AppTitle property of the current
database and applies the RefreshTitleBar method to update the title
bar.

Sub ChangeTitle()
Dim obj As Object
Const conPropNotFoundError = 3270

On Error GoTo ErrorHandler
' Return Database object variable pointing to
' the current database.
Set dbs = CurrentDb
' Change title bar.
dbs.Properties!AppTitle = "Contacts Database"
' Update title bar on screen.
Application.RefreshTitleBar
Exit Sub

ErrorHandler:
If Err.Number = conPropNotFoundError Then
Set obj = dbs.CreateProperty("AppTitle", dbText, "Contacts Database")
dbs.Properties.Append obj
Else
MsgBox "Error: " & Err.Number & vbCrLf & Err.Description
End If
Resume Next
End Sub

Oct 25 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: arenaTR | last post by:
I'd like to put a logo in the titlebar of my webpage. The one I'm talking about is the one that's next to the URL in the address bar in both netscape and IE. Just so I'm clear, for example, on...
2
by: Gerry Abbott | last post by:
Hi all, 1. Is it possible to have a custom icon on a form Titlebar, different ones for different forms in an application. 2. Is is possible to change the font/ font size of the form Titlebar. ...
2
by: Rookie | last post by:
Hi, I have a C# application which has 3 forms. I want to set the icon for the ..exe to a custom made icon. How do I do this? I tried setting the Icon of the main form. But that didn't work. It...
7
by: Danielb | last post by:
I want my application to run most of the time as just an notify icon visible in the system tray, with some dialogs windows that open if the user selects an option from the context menu on the tray...
1
by: Christoph Engelhardt | last post by:
Hi newsgroup, What I intend to do: Write a small programm, that will add a new Button to every Window right beside the Buttons for minimizing, maximizing and closing the window in the window's...
1
by: rob | last post by:
I would like to add an icon to the RIGHT side of an application's titlebar. Basically, it will supplement the other icons already there. Is there any direct support in .NET 2.0 to do this? If not I...
2
by: Baal80 | last post by:
Hello everybody, I'd like to add an icon to my application's titlebar (to the left of the minimize icon). And no, it will not be the icon to minimize application to tray ;) Nevertheless, I...
0
by: Vyz | last post by:
I have given icon like this to main frame of my program ib=wx.IconBundle() ib.AddIconFromFile("SriPadma.ico",wx.BITMAP_TYPE_ANY) self.SetIcons(ib and then I have made binary with py2exe and in...
1
by: x taol | last post by:
Set dbs = CurrentDb dbs.Properties!AppTitle = "Contacts Database" Application.RefreshTitleBar this code is well working. but form is opend. when the form is maximized, the titlebar name is...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.