PDA

Click to See Complete Forum and Search --> : Hiding from the taskbar...


Aaron Young
Nov 3rd, 1999, 12:07 AM
If all you want to do is remove your form from the Taskbar, set the Forms ShowInTaskBar Property to False.


------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
adyoung@win.bright.net

Inhumanoid
Nov 3rd, 1999, 11:32 AM
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 ??