Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resize event fired unexpectedly

Status
Not open for further replies.

aitor

Programmer
May 15, 2001
18
ES
This is incredible. I don´t know if it is a bug, but it is quite surprising: I put this code into a windows form resize event handler:

Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Resize

MsgBox("hello")

End Sub

Well, if I run this in PIV computers (I haven´t detect any other relationship), the event only fires once, just when I release the mouse left button (after resizing it, obviously). This is the expected behaviour, and it´s ok. However, if I run the same code in a PIII computer (I have test it with five different computers), the event fires inmediately, just when I start resizing the form, even though I haven´t released the mouse button.

Have you ever experienced this strange bahaviour? Any idea?. It´s a big problem if you use the resize or layout events for tasks like scaling the form...

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top