Results 1 to 12 of 12

Thread: Title Bar

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    Is there a way to get a form's caption to appear in the taskbar without having the big blue Title Bar at the top of the screen? If you know the answer please respond, if you're not a regestered user, please e-mail it to [email protected]

  2. #2
    Guest
    Make Caption blank and set the ControlBox to False.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    yea but If I do that then the thing in the taskbar will be blank

  4. #4
    Guest
    You can set the BorderStyle to None. If you want your 3-D borders, then just draw them with the Line method.

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715

    Smile

    OK... I guess I didn't explain what I need clearly... I need to hide the big blue bar at the top of the screen do i did the folowing:

    From the properys box, I set the value of Control Box to false
    and caption to (nothing)

    So that the Title Bar won't show.


    The Problem I have is, that when I do that in the TASK BAR area, my program's area has an icon and the caption is blank. Now is there a way to set the caption with out having the blue thing at the top of the screen?

  6. #6
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    this works...

    'Aaron gave this to me some time ago...works fine
    'show the icon of a titleless form in taskbar tray

    Private Declare Function SetWindowLong Lib "user32" _
    Alias "SetWindowLongA" (ByVal hwnd As Long, _
    ByVal nIndex As Long, ByVal dwNewLong As Long) _
    As Long

    Private Const GWL_STYLE = (-16)
    Private Const WS_SYSMENU = &H80000

    '<<<<<< Form load >>>>>>

    Private Sub Form_Load()
    Call SetWindowLong(Me.hwnd, GWL_STYLE, WS_SYSMENU)
    End Sub
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  7. #7

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715

    Re: this works...

    Do you know how to get the caption to appear in the Task Bar Area, and still not have the Title Bar?

  8. #8
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    Nope

    Sorry...some people text as images...can you use text as an icon...
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  9. #9

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715

    Re: Nope

    ok, I'll try that

  10. #10
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    Cool try this....

    in the Resize event add this :

    If Me.WindowState = vbMinimized Then
    Me.Caption = "Your Caption"
    Else
    Me.Caption = ""
    End If


    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  11. #11
    Guest
    Okay, the method I told you before works! Try it. Set the BorderStyle to False and set the ShowInTaskBar property to True.

    Now you have a blank grey box with NO Title Bar and it shows the text in the TaskBar.

  12. #12

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    WOW Thanks MegaTron, it works, and to HeSaidJoe:

    I tried that before and when the user was using the form, there was no words in the task bar

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