Results 1 to 2 of 2

Thread: Hiding from the taskbar...

  1. #1

    Thread Starter
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    If all you want to do is remove your form from the Taskbar, set the Forms ShowInTaskBar Property to False.


    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]

  2. #2
    Hyperactive Member
    Join Date
    Oct 1999
    Posts
    309

    Post

    This code was given to me:

    This code will hide your form from the taskbar.

    Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, _ ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, _ ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long

    Public Const SWP_SHOWWINDOW = &H40
    Public Const SWP_HIDEWINDOW = &H80

    Dim ret&

    ' This code will hide your form

    ret = SetWindowPos(Form1.hwnd, 0, Form1.Left, Form1.Top, Form1.Width, Form1.Height, SWP_HIDEWINDOW)

    ' This code will show your form

    ret = SetWindowPos(Form1.hwnd, 0, 0, 0, 500, 500, SWP_SHOWWINDOW)

    The "hide form" code works fine but...

    My question
    How can I ever let the "show form"-code be executed without needing another program or window ??

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