Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

3.2. USING ANCHOR PROPERTIES

The MinimumSize property prevents the user from making a form too small but it doesn't solve the problem shown in Figure 3-2. When the user resizes a form, it would be nice for controls to change their sizes to match.

The Anchor property lets a control resize itself when its container resizes. This property can take one or more of the values Top, Bottom, Left, and Right, in any combination. These values indicate that the control's edge should remain the same distance from the corresponding edge of its container.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial