Results 1 to 4 of 4

Thread: titlebars

  1. #1

    Thread Starter
    Member bcx7's Avatar
    Join Date
    May 1999
    Location
    Adelaide, South Australia, Australia
    Posts
    46
    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)


  2. #2
    Guest

    Lightbulb

    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?

  3. #3
    Guest

    Exclamation


    I don't think it's possible! Try the other guy's hint..
    or use subclassing.

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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
  •  



Click Here to Expand Forum to Full Width