HighTechTalks DotNet Forums  

screen resize event to capture landscape mode - Mobile 5.0 VS 2005

Dotnet Framework (Compact Framework) microsoft.public.dotnet.framework.compactframework


Discuss screen resize event to capture landscape mode - Mobile 5.0 VS 2005 in the Dotnet Framework (Compact Framework) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Rob
 
Posts: n/a

Default screen resize event to capture landscape mode - Mobile 5.0 VS 2005 - 03-22-2006 , 03:24 PM






We have a system that uses a main menu that remains in the background while
successive forms are displayed. So effectively, when one form is loaded is
runs on top of whatever screen was previously running. When the user closes
a screen using our "X" exit button, we close the form and the previous form
becomes active. I am using the resize event to redraw the screen when the
user drops the keyboard down (mobile 5.0 vs 2005) it works fine most of the
time but occasionally the main menu's resize event kicks off and causes
another screen to be loaded. Is there anyway to prevent this? Is there
something that can check if the form is the current form when the resize
event kicks off to bypass running any code? Thank you.

Robert

Reply With Quote
  #2  
Old   
Rob
 
Posts: n/a

Default RE: screen resize event to capture landscape mode - Mobile 5.0 VS 2005 - 03-23-2006 , 07:21 AM






I figured out what was happening. I had to create 2 menus for landscape mode
and one of them had a select statement to determine which application to run.
I had made the else equal to a valid value which caused the menu to think
something was selected. I changed the else to -1 and it works.

"Rob" wrote:

Quote:
We have a system that uses a main menu that remains in the background while
successive forms are displayed. So effectively, when one form is loaded is
runs on top of whatever screen was previously running. When the user closes
a screen using our "X" exit button, we close the form and the previous form
becomes active. I am using the resize event to redraw the screen when the
user drops the keyboard down (mobile 5.0 vs 2005) it works fine most of the
time but occasionally the main menu's resize event kicks off and causes
another screen to be loaded. Is there anyway to prevent this? Is there
something that can check if the form is the current form when the resize
event kicks off to bypass running any code? Thank you.

Robert

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.