Results 1 to 10 of 10

Thread: Anchor & Dock For Automatic Resizing

Hybrid View

  1. #1
    Fanatic Member
    Join Date
    Dec 2009
    Posts
    547

    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.

  2. #2

    Thread Starter
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Anchor & Dock For Automatic Resizing

    Quote Originally Posted by kayleigh View Post
    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width