From: Harry Simpson on
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


From: Peter Foot [MVP] on
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

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

"Harry Simpson" <hssimpson(a)phgt.net> wrote in message
news:eA%23ZGr7DFHA.560(a)TK2MSFTNGP15.phx.gbl...
> 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
>