469,625 Members | 1,355 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,625 developers. It's quick & easy.

Why does moving a Form cause the Resize event to fire?

It seems kind of strange that if a Form is just moved that Resize events
fire. This makes it hard to tell the difference betweeen resizing and moving
a Form.

I can understand why resizing might also be considered a move (since the
Form's location can be thought to be based on one from Top/Bottom and one
from Left/Right, and some of these WILL change when resizing), but can't
understand why JUST moving is considered resizing. I was trying to create an
automatic pop-up window that shows the size dimensions (w,h) of the Form as
it is being resized. But it also comes up when I'm moving the Form, which
looks odd.

I suppose I could keep track of the size of the Form and then ignore any
Resize event if the size is unchanged. But IMHO that's a kludgy work around,
since IMHO Resize events should not fire if the Form doesn't change size!
Nov 16 '07 #1
0 1320

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Jozef | last post: by
6 posts views Thread by adolf garlic | last post: by
1 post views Thread by Dennis | last post: by
6 posts views Thread by Tarren | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.