Windows Develop Bookmark and Share   
 index > Windows Forms Designer > How to resize the window form control dynamically
 

How to resize the window form control dynamically

Hi all,

I am new to windows form application.I am developing a form application in c# and have placed some controls on the form.I want to resize the size of the controls placed on the form dynamically,as user resizes the form.Anybody can please help me to solve this problem?Any links or code snippet would be helpful for me.

Thanks in advance,
Jyoti J.V

jyotijv  Tuesday, November 04, 2008 10:57 AM

Hi

For you have to use Anchor property of the controls..

Just go thru this link..

http://articles.techrepublic.com.com/5100-10878_11-6154580.html

Hope this will help U out...

Sreenath G V  Tuesday, November 04, 2008 11:44 AM

Hi

For you have to use Anchor property of the controls..

Just go thru this link..

http://articles.techrepublic.com.com/5100-10878_11-6154580.html

Hope this will help U out...

Sreenath G V  Tuesday, November 04, 2008 11:44 AM
Hi Sreenath,

Thanks for the reply.I went throgh the link sent by you and tried with the anchor property of a control.But the problem I faced is,When I place more than one control on the form and when the form is resized all the controls are over lapped.I have set the anchor property of the all the controls to top,bottom,right and left.How to overcome from overlapping of controls and reposition it.Please suggest me.

Thanks once again,
Jyoti J.V

jyotijv  Wednesday, November 05, 2008 12:21 PM

Hi ,

If you have many controls and also you can give more scope to r4esize the form then you have to Use the resize property of the form and changhe the size and location as in sync with the form.

This will do.

Sreenath G V  Wednesday, November 05, 2008 12:30 PM
Sreenath G V  Thursday, November 06, 2008 3:19 AM

You can use google to search for other answers

Custom Search

More Threads

• 'System.Windows.Forms.Label' does not contain a definition for 'PreferredHeight'
• How do I make a group box visible after user input?
• Control grouping frames
• How to make a Label to re-adjust its own Font.Size based on its Size and its Text length.
• IDesignerLoaderHost Interface
• How can I set focus in a web broswer on winform?
• Adding Catogories to ToolBox
• net check before opening the form
• Add property-level attributes dynamically using TypeDescriptor for PropertyGrid
• Collection editor support for object and interface types