Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
One more How to I translate this from FoxPro...
Message
 
To
23/01/2009 00:36:38
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01376449
Message ID:
01376522
Views:
10
If you want the height to change with the container you have to make sure the MultiLine property for the TextBox is set to true. and then set anchor to top,left,right and bottom.

Also something to play around with for control layout is the tablelayout panel, it is very useful with multiple columns.

>Top, Left, Right doesn't work at all. Have you tried this? If so, what am I missing? Top, Left, Right leaves the objects the same size, that's not what I am going for. I want the objects to grow in proportion to the size of the container (Form) as it is streached or shrunk.
>
>Any other suggestions or answers would greatly be appreciated.
>
>bob
>
>
>
>>The simplest way to make textbox grow/shrink when form is resized is to set Anchor to "Top,Left, Right". Unlike cryptic VFP integer values , anchor(s) may be set visually in properties window . Concept of Anchor in Windows Forms is quite clear - defines the edges of the container to which a certain control is bound , i.e. a distance is kept the same between those edges and a control.
>>
>>>In FoxPro you could set the Anchor property of a visual object to 240 and it would automatically shrink/grow as the container was resized. Unfortunately the font size didn't grow too. :(
>>>
>>>Anyway, I'm curious how to achieve the same thing with .NET controls (like texboxes, etc.). We usually design our screens for 1024x768 so that it will look good on a minimum sized PC, but users like to resize their windows so that it's easier to read on a larger monitor. Anyway, in .NET can we also see an increase in font sizes too?
>>>
>>>I've set Anchor to None, but all that seems to do it allow the textbox, etc. to float on the form as it grows or shrinks, but it doesn't seem to effect the size of the textbox, etc.
>>>
>>>Thanks.
>>>
>>>bob
Semper ubi sub ubi.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform