Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OK, I give up
Message
 
À
27/06/2004 16:13:20
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
00917740
Message ID:
00917920
Vues:
13
>Hey Bonnie,
>
>Are you talking about Web controls or WinForm controls? I'll let the Web experts answer the first one.

WinForms.

>For WinForm controls, simple controls such as buttons or labels can't be visually designed. I'm not even sure *why* you'd need to visually design a button. Can you give me an example of why you're trying to do this?

I'll give you a couple of examples.

First, assume a label. By sub-classing the label and giving a a given font name and size, all labels inherit these properties. Real world example can be seen in Win9x versus Win2K. In the former the default font was MS Sans Serif. In the latter it's Tahoma. By sub-classing the label, if I wanted my application to match defaults, I just have to change the font name and re-compile. Every label then is set to the new font.

More complex would be say a text box. We use a number of 5 alpha/numeric character fields (I can think of at least 4 different types of these off the top of my hear). These should always be entered in upper case. In VFP, I can create a class and use it whenever I need it.

I know, copy and paste...grumble

>However, composite UserControls or Forms *can* be visually designed, simply by specifying "Add Inherited Form" or "Add Inherited Control" when adding a new class to your project.

This I was aware of, but thanks.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform