Update titlebar icon ok...but menubar?

F

Fred Boer

Hello:

I'm playing with a settings form, using code reproduced below. After the
user changes the setting, the change is instantly applied. I can make the
application icon change properly, but the icon on the form's menu bar
doesn't change. Me.Form.Repaint doesn't do it... Is there a way to "refresh"
form title bars?

Thanks!
Fred Boer


Private Sub txtPathToAppIcon_AfterUpdate()
On Error GoTo ErrorHandler

Dim db As DAO.Database


If Me.Dirty Then Me.Dirty = False

Set db = CurrentDb()

' Change the application icon. Pull application icon path from settings
table.

db.Properties!AppIcon = Me.txtPathToAppIcon

' Update title bar on screen.

Application.RefreshTitleBar


db.Close
Set db = Nothing

ExitPoint:
Exit Sub
ErrorHandler:
fncErrorMessage Err.Number, Err.Description
Resume ExitPoint
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top