|
-
Apr 28th, 2000, 12:16 PM
#1
Thread Starter
Member
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)
-
Apr 28th, 2000, 12:49 PM
#2
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?
-
Apr 28th, 2000, 01:22 PM
#3
I don't think it's possible! Try the other guy's hint..
or use subclassing.
-
Apr 28th, 2000, 03:09 PM
#4
transcendental analytic
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
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|