Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
One more How to I translate this from FoxPro...
Message
From
23/01/2009 02:52:36
 
 
To
23/01/2009 00:36:38
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01376449
Message ID:
01376475
Views:
9
The width should expand. You'd need to anchor bottom as well to affect the height. But you obviously cannot apply it to all controls because this would cause overlap. If you want the whole form to scale (including fonts) then WPF is a better bet.
Regards,
Viv

>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
Previous
Reply
Map
View

Click here to load this message in the networking platform