all groups > dotnet compact framework > february 2006 >
You're in the

dotnet compact framework

group:

Screen Mode Change



Screen Mode Change JB
2/28/2006 2:20:30 PM
dotnet compact framework: Hi,

I am writing an application for a K-JAM i-mate. When the screen mode
changes, it sometimes executes the Resize event more then once. I have code
in the Resize event to make sure everything re-positions itself nicely, but
if it calls the resize event twice for a single screen mode change,
everything screws up.

Re: Screen Mode Change Paul G. Tobey [eMVP]
2/28/2006 3:29:11 PM
I think that you'll just have to live with it. I suppose that you could
store the screen parameters from your last rearrangement of the windows and
not do anything if you got another resize event with the same parameters
set...

Paul T.

[quoted text, click to view]

Re: Screen Mode Change Hilton
3/6/2006 8:55:35 PM
[quoted text, click to view]

Why would things screw up since you should just be repositioning controls?
Perhaps you have logic in there that should be elsewhere? i.e. IMHO
OnResize should be able to be called any number of times without problems.

Hilton

AddThis Social Bookmark Button