Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is equivalent of container or shape in WinForm
Message
From
21/08/2009 00:12:08
 
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01419055
Message ID:
01419442
Views:
67
Dmitry,

As Cetin says, you can use a Panel. As Kevin says, you can use a UserControl. In addition to those, it sounded to me like you also might be interested in using a GroupBox. All three of these controls have similarities, in that they're "containers", and you can visually drop stuff on them, but they are typically used for different purposes.

UserControls are typically used as a "standalone" set of controls (IOW, you'd design a UserControl visually by dropping on TextBoxes, etc. and save it as a single class file, MyCustomerControl.cs for example).

Panels are typically used for docking, along with Splitters, and are dropped on a Form or UserControl.

GroupBoxes are typically used, as the name suggests, to visually group a set of controls together(TextBoxes,etc), and are dropped on a Form or UserControl.

~~Bonnie





>Hi,
>
>I am working on creating a couple of forms to look exactly as they look in VFP app. The form I am working on right now has a container where textboxes and labels reside. The container is 3d style so it shows raised. If .NET does not have container, does it have a shape control that I can include around the textboxes and labels?
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