|
-
Jan 10th, 2012, 02:50 PM
#1
Fanatic Member
Re: Anchor & Dock For Automatic Resizing
Hi john. I stumbled upon this while searching the forums. Would you say it's out side the scope of this thread to ask about anchoring with inside a user control? To make it clearer if i had a mainform that housed a user control. When mainform re-sized it re-sized the user control and controls? The user control does not resize when Mainform does.
Should i make my own thread
Last edited by kayleigh; Jan 10th, 2012 at 02:53 PM.
-
Jan 10th, 2012, 08:22 PM
#2
Re: Anchor & Dock For Automatic Resizing
 Originally Posted by kayleigh
Hi john. I stumbled upon this while searching the forums. Would you say it's out side the scope of this thread to ask about anchoring with inside a user control? To make it clearer if i had a mainform that housed a user control. When mainform re-sized it re-sized the user control and controls? The user control does not resize when Mainform does.
Should i make my own thread 
Anchoring & docking is relative to a control's immediate parent. Any child controls in a UserControl will resize based on the UserControl and a UserControl on a form will resize based on the form. A UserControl is just like any other control. If you have set the Anchor and/or Dock properties of a UserControl on your form and it doesn't resize with the form then something is broken in your project or your system because a UserControl is a control and it behaves like any other control.
Last edited by jmcilhinney; Oct 18th, 2019 at 09:32 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|