Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Writing resize code without WITH/ENDWITH
Message
From
04/05/2004 21:02:33
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00900758
Message ID:
00901016
Views:
20
>Pardon my *trip*. I'm still new to this.
>What do you mean by anchors ?


I was going to mention this when I replied to you earlier, but it slipped my mind (because I don't use it much). Any control can be "anchored" to an edge of it's container and it will stay in place automatically when that container is re-sized without you having to write any code for it. Try this with any control (say a textbox):
this.MyTextBox.Anchor = AnchorStyles.Left;
Play around with it and you'll get the feel of it. You may have to add containers (most likely panels) to your form to take advantage of this.

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform