Full Screen Application

G

Guest

Hi All,
i wanted to create a full screen application that takes the whole screen
area and prevents the user from interacting with anything else in the pecket
pc device.

i created a new pocket pc application and changed the following properties
of the main form :
- FormBorderStyle set to None
- Window State set to Maximized
- ControlBox set to False
- MinimizeBox set to False
- MaximizeBox set to False

i added the following code in the form constructoe :
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Capture = True
Dim hwnd As IntPtr = Utilities.GetCapture()
Capture = False
Utilities.SHFullScreen(hwnd, Utilities.SHFS_HIDETASKBAR Or
Utilities.SHFS_HIDESTARTICON)
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
everything worked just then i added a button to the form to open a new form
using the following code
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Dim f As New Form2
f.Show()
End Sub
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
in this new form i chenged the following properties
- MinimizeBox set to False
- MaximizeBox set to False

i run the app and the two forms are displayed in full screen mode and the
start icon is hidden

but when i added a main menu to the second form (so that i can use the input
panel)
the start icon is displayed

now how can i prenvent the display of the start icon
 
S

Sergey Bogdanov

Due the fact that PocketPC always trying to restore StartIcon you should
move your existent SHFullScreen code to Activate event handler (actually
it is not correct place for constructor at all) for each Forms.

Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com
 
G

Guest

Thanks alot

Sergey Bogdanov said:
Due the fact that PocketPC always trying to restore StartIcon you should
move your existent SHFullScreen code to Activate event handler (actually
it is not correct place for constructor at all) for each Forms.

Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com
 
H

Harry Simpson

Mesalem,

Where did you get the code to hide the Start button etc?
Examples?

Harry
 

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

Top