Screen Mode Change

G

Guest

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!
 
P

Paul G. Tobey [eMVP]

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.
 
H

Hilton

JB said:
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
 

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