Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
One more How to I translate this from FoxPro...
Message
From
22/01/2009 23:58:13
 
 
To
22/01/2009 21:44:38
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01376449
Message ID:
01376457
Views:
10
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform