SHFullScreen

  • Thread starter Thread starter Harry Simpson
  • Start date Start date
H

Harry Simpson

I'm using this (leaving out the declarations for this post) in the Form load
of my main form:

Capture = True
Dim hwnd As IntPtr = GetCapture()
Capture = False

SHFullScreen(hwnd, SHFS_HIDESTARTICON)

The Start button disappears and even open a new form with the start button
still hidden. When I execute a msgbox, the start button comes back with a
vengence.

Do I just repeat the code above directly after I close the message box?

What's the best way to handle this?

Thanks
Harry
 
Put it in your forms activate (and possibly GotFocus) handler and it will
get called whenever your form is restored from another window. Unfortunately
the API doesn't set a permanent flag on the window and therefore you have to
keep setting it to avoid it reverting to just a normal window.

Peter
 
Back
Top