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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top