-
I've created myself a login form using the standard "Add...Form...Login Dialog" and set the ShowInTaskBar property to "True" because I want it to be the first form (called from Sub Main) that gets displayed - if login fails I don't want to be continuing to show the next form, etc.
However, even though I thought I should see it in the taskbar, it isn't there...anyone know why and what I can do about it? I'm using VB6 (Enterprise) on NT4 (SP4).
Thanks,
Toot
-
?
Are you using a a borderless,captionless, form?
If you are you need this.
'show the icon of a titleless form in system tray
'bas module code
'show the icon of a titleless form in systray
Public Declare Function SetWindowLong Lib "user32" _
Alias "SetWindowLongA" (ByVal hwnd As Long, _
ByVal nIndex As Long, ByVal dwNewLong As Long) _
As Long
Public Const GWL_STYLE = (-16)
Public Const WS_SYSMENU = &H80000
'form load event
'show the icon of a titleless form in systray
Call SetWindowLong(frmPicDisplay.hwnd, GWL_STYLE, WS_SYSMENU)
-
Put the form showintaskbar property to true in design time