Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subclass a winform in VS2008 C#
Message
De
23/11/2008 15:03:25
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
C# 3.0
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01363702
Message ID:
01363711
Vues:
6
This message has been marked as a message which has helped to the initial question of the thread.
Try it this way:

From the Solution Explorer, right-click on your project where you're keeping all your base classes, choose Add | Windows Form. Now you can open it up in the designer and do whatever you want to it, or put stuff in code. It should show up in your ToolBox, since you already have stuff from this project there (if not, you know how to add it) ... although it really doesn't do you any good in your ToolBox. Did you need to know how to further sub-class this class?

~~Bonnie




>I'm trying to make some headway using winforms. My first task is to subclass all the basic controls I expect to use so I can customize and inherit easily (OOP - right?).
>
>Until now, all my .NET work has been in ASP.NET which I assumed was such a complete pain in the a$$ because of the web platform.
>
>Now that I am back to Windows, and since VS2008 is so advanced, I'm sure I'm just overlooking the simple drag 'n drop way to subclass a Form so I can customize it and EASILY use it as the base for future applications.
>
>In VFP, create a form, customize, add to a VCX, and tell VFP to use that class as the base for future forms.
>
>I'm sure VS2008 is at least as easy - how do I do it?
>
>FWIW I've managed (after several hours of reading various fragmented, incomplete, or inaccurate articles on the web) to subclass a number of controls and add them to the toolbox. The FORM is the problem now.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform