Form.MinimumSize

  • Thread starter Thread starter Wim
  • Start date Start date
W

Wim

I noticed that my program was reacting slow when moving it over the
screen. So I went looking for what was causing this. It seems
Form.MinimumSize is the culprit. At first I had
this.MinimumSize = new System.Drawing.Size(408, 296);
in the InitializeComponent() member. The program reacted slow on moving
from the start. Then I put the this.MinimumSise statement in the
Form_Resize member (EventHandler). The program is now fast when moving it
over the screen until it's being resized. Is this a known issue? Am I
doing something wrong? Is there a work around?
 
I've seen this happen - not sure if its a known issue or not. One thing you
can do is override the wndproc of the form and handle the WM_GETMINMAXINFO
message.
 
Andrew said:
I've seen this happen - not sure if its a known issue or not. One
thing you can do is override the wndproc of the form and handle the
WM_GETMINMAXINFO message.

Thank you. But I hope to get my app working in Linux, so I don't want to
use the Win32 API.
 
Back
Top