How can i change Windows Form in real time
-
Hi All I have some application that i need to get parameters from the user and open Windows Form in the size that this user choose. How can i change Windows Form in the run time ? [real time] ? Thanks.
-
Hi All I have some application that i need to get parameters from the user and open Windows Form in the size that this user choose. How can i change Windows Form in the run time ? [real time] ? Thanks.
Modify the Size atribute. To have a form resize itself do this: this.Size = new Size(width,height); You'll need to look into anchoring (or possiby docking) your controls to grow/reposition them when the form changes it's size. If you're using 05 you could also try the layout manager. In 03 for anything complex you might have to handle the resize event yourself.