Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Newbie class creation question
Message
De
21/07/2004 11:07:06
 
 
À
21/07/2004 09:25:50
Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00926521
Message ID:
00926568
Vues:
25
Mike,

One option is to design it visually, on a form, and copy/paste the block of code out of the InitializeComponent() method of the form into your class definition. Find/Replace to get rid of this.textBox1, and your just about there...

>Hi,
>
>I have a VFP background and I'm dipping my toes into the C# world and have immediately stumbled :)
>
>I am accustomed to designing my base classes visually. For example, I subclass a native VFP button by dropping one on a form in the form designer, set the button's properties for Font, ForeColor, BackColor, Flat, etc. then save the button as a class. The button class is now available for drag and drop to other form. Simple and easy for me.
>
>How do I go about doing this (or somthing like it) in the C# .NET IDE? I can't seem to find a way to do the class design visually.
>
>
>TIA
>
>
>Mike
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform