|
My main form (Form1) allows the user to connect to a server. When the program receives a particular message from the server, it opens a new form (Form2). The problem is, Form2 seems to be stuck in some kind of loop: it is not being painted, and will not respond to input. The mouse cursor changes to the hourglass when moving over the form. At first I thought it was a problem with my painting code, so I used a generic Windows.Forms.Form object, and got the same problem. The really weird thing is, if I create the form in some other function (the Load event handler of Form1, for example), it works fine. Its only when I create and show the form from the function that is processing network messages that I have the problem. Does anyone have any idea what could be going on here?
Autofed |