Results 1 to 7 of 7

Thread: Make taskbar invisible

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2001
    Location
    Villiers, South Africa
    Posts
    301

    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.

  2. #2
    Junior Member Daler Mehndi's Avatar
    Join Date
    Nov 2001
    Posts
    31

    Cool

    Set BorderStyle to 0 then Maximize form!
    PUNJABI!!!!!

    Daler Mehndi
    Eastern Dance Star and VB-World KKK (Kitty Kat Klub)
    http://www.daler.com/

    Daler say "Alo!"!

  3. #3
    Hyperactive Member
    Join Date
    Oct 2001
    Location
    The Netherlands
    Posts
    403
    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
    There are 10 types of people, those who understand binary and those who don't

    http://merlijn.beyonix.net

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2001
    Location
    Villiers, South Africa
    Posts
    301
    Thanks for the quick response!

  5. #5
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923

    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

  6. #6
    Hyperactive Member
    Join Date
    Oct 2001
    Location
    The Netherlands
    Posts
    403
    It doesn't?
    So you cannot unregister certain hotkeys anymore?
    There are 10 types of people, those who understand binary and those who don't

    http://merlijn.beyonix.net

  7. #7
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    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
  •  



Click Here to Expand Forum to Full Width