Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 392
  • Last Modified:

making controls sizable on a sizable form

Hi,

I'm sure I'm having a blond moment here but can someone tell/remind me how to set some basic form properties please.

I have a simple windows form which basically falls into 2 sections.  the top part has a few labels & textboxes ( + 2 radio buttons and a combo - not much though say 10 controls all together) then there is a large multiline textbox and a close button at the bottom.  If the form size is increased I would like the new space to be filled by the large textbox.  This is the only control worth sizing.  The other controls shoul djust stay where they are and remain the same size.  I'm sure I've done this loads of times before using the docking property but I am having trouble.  If I use fill (along wioth some panels) it takesd the whole form and wont allow for the other controls.  Using other commands just make it expand vertically OR horizontally.  Can anyone tell me where I'm going wrong?

Thanks.
0
gringogordo
Asked:
gringogordo
  • 2
1 Solution
 
possekeCommented:
Hi gringogordo,

You should set the Anchor property of the large textbox to 'Bottom, Right'
As a matter of fact, you can use the anchor property for just about any control on your form!
Just try it out on the large textbox, and you'll see that it's just what you need!

Greetz,

Po$$e
0
 
gringogordoAuthor Commented:
Thanks,

embarressed but grateful!
0
 
possekeCommented:
Hi,

no need to be embarrassed, every programmer sometimes struggles over the most obvious things, just glad to help you out ;)

Greetz,

Po$$e
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now