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]
Printable View
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]
Make Caption blank and set the ControlBox to False.
yea but If I do that then the thing in the taskbar will be blank
You can set the BorderStyle to None. If you want your 3-D borders, then just draw them with the Line method.
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?
'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
Do you know how to get the caption to appear in the Task Bar Area, and still not have the Title Bar?
Sorry...some people text as images...can you use text as an icon...
ok, I'll try that
in the Resize event add this :
If Me.WindowState = vbMinimized Then
Me.Caption = "Your Caption"
Else
Me.Caption = ""
End If
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.
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