Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Control sizing settings
 

Control sizing settings

hi,

this is probably more general question, but anyway...

Does anybody know if it's possible to set control properties (anchor, dock)so that it'd resize as well as change its location relatively to parent control on parent resize?

Problem is that i have designer and controls on it. those controls have anchor set to top | left, which means that when i resize designer surface, nothing happens (their location and size don't change). I tried to anchor them to top | left | bottom | right -> they are resized but location doesn't change...
I'd like to get behavior like when you e.g. in PowerPointGROUP two controls and then resize the group (then location as well as size is proportionaly changed). Is it possible to get same behavior simply just by combining control properties or do i have to implement e.g. size handler?

thanks for any help
L
LubosSykora  Friday, July 03, 2009 7:40 AM
Hi,
Try use tablelayoutpanel with size in % and then put controls in it. Set autosize property to true for the controls you put inside the cells of the table. I hope this will help you out!

-- Thanks Ajith R [Remember to Mark as Answer if it is Helpful.]
Ajith R Nair  Friday, July 03, 2009 9:56 AM
Hi,
Try use tablelayoutpanel with size in % and then put controls in it. Set autosize property to true for the controls you put inside the cells of the table. I hope this will help you out!

-- Thanks Ajith R [Remember to Mark as Answer if it is Helpful.]
Ajith R Nair  Friday, July 03, 2009 9:56 AM

You can use google to search for other answers

Custom Search

More Threads

• Designer form
• Capturing the mousedown event for a groupbox--possible?
• How to add and read the data in a ListBox of MDI Windows Form project with 1 "Parent" & 2 "Child" Forms with 2 Classes?
• How can I hide from grid "(name)" property of my control?
• Window From Designer Error
• Saving a panel content as an image
• Repainting Controls
• How to quick tab to a textbox with ALT?
• Populating the treeview with directory details
• Auto generation annoyance