TomRR
17th June 2009, 02:40 PM
Hi,
I'm working on programm with .NET Framework 3.5 for my HTC Touch Diamond 2.
Now I need help on two issues:
1. Fullscreen (hide taskbar)
I set WindowState to Maximized and FormBorderStyle to None.
This works on the emulator. On the emulator, the form is maximized and the taskbar is not visible anymore.
However, when I run the same programm on my htc diamaond 2 the taskbar is still visible! Does anyone know what the problem is?
2. Form.Closing
In the form closing event I want to show a message box "Are you sure". If the user clicks 'no', I want the application to not close.
For this purpose I cancel the CancelEvent: e.Cancel = true;
But this doesn't work: The from gets closed anyway but the application process keeps running in background. The programm doesn't appear in taskmanager running applications but only in running processes. So I cannot switch back to my application.
Any hints how I can manage this?
Thanks
Tom
I'm working on programm with .NET Framework 3.5 for my HTC Touch Diamond 2.
Now I need help on two issues:
1. Fullscreen (hide taskbar)
I set WindowState to Maximized and FormBorderStyle to None.
This works on the emulator. On the emulator, the form is maximized and the taskbar is not visible anymore.
However, when I run the same programm on my htc diamaond 2 the taskbar is still visible! Does anyone know what the problem is?
2. Form.Closing
In the form closing event I want to show a message box "Are you sure". If the user clicks 'no', I want the application to not close.
For this purpose I cancel the CancelEvent: e.Cancel = true;
But this doesn't work: The from gets closed anyway but the application process keeps running in background. The programm doesn't appear in taskmanager running applications but only in running processes. So I cannot switch back to my application.
Any hints how I can manage this?
Thanks
Tom