|
-
Nov 4th, 2001, 11:14 AM
#1
Thread Starter
Hyperactive Member
Make taskbar invisible
I have a form which disables Ctrl+Alt+Del, but I can't remember how to make the taskbar invisible so that the user can't execute any other program while the form has focus. In other words, I want my form to take control of the whole screen.
-
Nov 4th, 2001, 11:18 AM
#2
Junior Member
Set BorderStyle to 0 then Maximize form!
-
Nov 4th, 2001, 11:25 AM
#3
Hyperactive Member
Public Declare Function SetWindowPos Lib "user32" Alias "SetWindowPos" (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 HWND_TOPMOST = -1
Public Const SWP_NOMOVE = &H2
Public Const SWP_NOSIZE = &H1
Public Const SWP_HIDEWINDOW = &H80
setwindowpos taskbarhwnd,0,0,0,0,0,swp_hidewindow
setwindowpos yourformhwnd, HWND_TOPMOST,0,0,screen.width,screen.height
-
Nov 4th, 2001, 11:28 AM
#4
Thread Starter
Hyperactive Member
Thanks for the quick response!
-
Nov 4th, 2001, 11:29 AM
#5
PowerPoster
Re: Make taskbar invisible
Originally posted by dcronje
I have a form which disables Ctrl+Alt+Del,
Don't forget that won't work under NT/2K/XP
-
Nov 4th, 2001, 11:31 AM
#6
Hyperactive Member
It doesn't?
So you cannot unregister certain hotkeys anymore?
-
Nov 4th, 2001, 11:39 AM
#7
PowerPoster
yeah you can un/register hotkeys, but NT-based OS will ignore attempts to stop ctrl+alt+del
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
|