|
-
Nov 3rd, 1999, 01:07 AM
#1
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]
-
Nov 3rd, 1999, 12:32 PM
#2
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|