Results 1 to 3 of 3

Thread: Modal form in taskbar

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Posts
    81

    Angry

    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
    Some cause happiness wherever they go; others, whenever they go.

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

    ?

    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)

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

    ___ Adolf Jensen

  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Put the form showintaskbar property to true in design time
    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