> I�ve got the forms resizing perfectly using Jim�s formula, but when I�ve > tried to use Larry�s anchor idea it doesn�t behave as I�d expect, unless I�m > missing something. > > The form I�ve experimented with is the main menu, which has an Enchanced > Group box on the left side containing the menu items. Since there are other > controls to the right of this box, what I want is that if the form grows > larger (it was created in the designer as 640 x 480), the group box show grow > also BUT relative to the size of the form. A right anchor makes the box > group to the FULL width of the form, which is NOT what I want.
If you have the group box positioned the way you want it, then anchors on the Top, Left, and Right should have the effect you want. Do NOT set the Align property of the group box -- the item on the property sheet. The Anchors setting is available ONLY by right clicking on an object (with only one object selected) and choosing Anchors from the context menu. It sounds like you might be setting the Align property to Right instead of the Anchors property. Anchors are a more complete level of control than the Align setting. Also, the controls that are to the right of your group box should have anchors set to Top and Right (but NOT Left), since you want them to move to the right as the form grows. Finally, if your menu options inside the group box are buttons, you probably want to set their anchors to Top, Left, and Right also, so they will grow to match the size of the group box. -- Larry
