1
Reply

Moving & Resizing a Form

dsp-reg

dsp-reg

Jul 7 2004 2:44 PM
1.5k
Hello everybody! I'm trying to create my own kind of GUI, so I want to resize my Form. There is no problem to resize ist to the left side or the bottom. But if I try to resize it for example to the to it flickers. If I call the SetBoundsCore method the content of the Form is redrawn at the new Position. If I call this Method with BoundsSpecified.None it isn't redrawn, but the Position and Bounds are not updated. So I tried to set ResizeRedraw = false and this.SetStyle(ControlStyles.ResizeRedraw, false) Now the OnPaint Method isn executed anymore, but all current pixels are copied. Can anyone help me??? Thanks, JSpille

Answers (1)