Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Correct way to create sub-classes of UI controls?
Message
From
19/04/2008 00:12:25
 
 
To
18/04/2008 17:24:37
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01311814
Message ID:
01311834
Views:
19
>I have created a project so that I can sub-class the basic UI components (label, textbox, combobox, etc) from the .NET base classes before I use them in my WinForms forms in my main project. However, I am confused about exactly how I should do the sub-classing. When I click on "Add New Item" on my project, the dialog box shows several seemingly possible ways to create the desired subclasses:
>
>After "Add New Item", I pick on "Visual C# Items", and then under the "Installed Visual Studio Templates" section I see several tempting choices like this:
>
>Component Class
>Custom Control
>Class
>Code File
>User Control
>
>
>So, which one is the right one to choose to sub-class say a textbox?
>
>I prefere to use a designer surface if possible, or is this only done by hand-coding?

Designer wouldn't be of much use for a subclass of something like a textbox.

Code File would be fine for this.

Message #1184898 would be a good start for the contents.
Previous
Reply
Map
View

Click here to load this message in the networking platform