Click here to Skip to main content
15,881,380 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I am trying to write some code in the Resize event of my windows form so that I can resize all the controls on my windows form (such as datagrid, textboxes, command buttons etc.) accordingly whenever I maximize or minimize my form. Can someone help me with a quick code...
Posted
Comments
hilbert hussen 17-May-14 1:45am    
iam unable to see all ur posts

Hello Hilbert,

Refer these available posts

https://www.google.co.in/?gfe_rd=cr&ei=FvJ2U7a-L6vO8gfxtIHACQ#q=how+to+resize+windowform+in+c%23[^]

All the best:)Use google effectively further .
 
Share this answer
 
if you like resize object by user then it`s better to implement your objects in different container then dock them to container and resize container
Check Links Below

http://msdn.microsoft.com/en-us/library/system.windows.forms.control.resize%28v=vs.110%29.aspx[^]
http://stackoverflow.com/questions/1636280/automatic-resizing-of-the-windows-forms-controls[^]
 
Share this answer
 
Normally, you are supposed to use the Anchor or Dock properties on your controls to keep your UI coherent when you resize the form.
What's wrong with these properties that you cannot use them?
 
Share this answer
 
Comments
hilbert hussen 17-May-14 3:16am    
when we click button user control will appear ..all controls resize when mazimize button click
but user control have same size

is there any anchor property for user control

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900