Application.RefreshTitleBar Method
Access Developer Reference |
The RefreshTitleBar method refreshes the Microsoft Access title bar after the AppTitle or AppIcon property has been set in Visual Basic.
Syntax
expression.RefreshTitleBar
expression A variable that represents an Application object.
Return Value
Nothing
Remarks
For example, you can change the caption in the Microsoft Access title bar to "Contacts Database" by setting the AppTitle property.
The AppTitle and AppIcon properties enable you to customize your application by changing the title and icon that appear in the Microsoft Access title bar. The title bar is not automatically updated after you have set these properties. In order for the change to the title bar to appear, you must use the RefreshTitleBar method.
Note |
---|
In a Microsoft Access database, you can reset the AppTitle and AppIcon properties to their default value by deleting them from the Properties collection representing the current database. After you delete these properties, you must use the RefreshTitleBar method to restore the Microsoft Access defaults to the title bar. |
It the path to the icon specified by the AppIcon property is invalid, then no changes will be refled in the title bar when you call this method.
Example
The following example sets the AppTitle property of the current database and applies the RefreshTitleBar method to update the title bar.
Visual Basic for Applications |
---|
|