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.

I am using VB.NET 2003, and any help would be much appreciated!

Re: Screen Mode Change by Paul

Paul
Tue Feb 28 16:29:11 CST 2006

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.

"JB" <JB@discussions.microsoft.com> wrote in message
news:27B4E8FF-C721-4A93-8B52-E27DCFB5DC57@microsoft.com...
> 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.
>
> I am using VB.NET 2003, and any help would be much appreciated!



Re: Screen Mode Change by Hilton

Hilton
Mon Mar 06 14:55:35 CST 2006

JB wrote:
> 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.

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