-
this is a bit complecating but here it goes:
when you set the caption on your form (ie form1.caption = "my program"), the same caption appears in the taskbar. how can i make title of the program different to what is says in the taskbar. (and when you click on the item in the taskbar, it maximizes/restores that form)
-
If you want to change the Caption while the form is minimized, then you can use this:
Code:
Private Sub Form_Resize()
Dim MyCaption As String, OldCaption As String
If Me.WindowState = vbMinimized then
Me.Caption = MyCaption
Else
Me.Caption = OldCaption
End If
End Sub
Hope that helped. Were you hoping to find code for when the form wasn't minimized?
-
I don't think it's possible! Try the other guy's hint..
or use subclassing.
-
You can make your form titlebar=false then put another form out of the screen and change that forms caption. Use property get/let to put caption property to change the other forms caption. Also this way you can show and hide your app from titlebar. you have to put youroroginalform.setfocus in theoutofscreenform_gotfocus event