Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a sub-classed control
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00697547
Message ID:
00697557
Vues:
8
When you drop the control on to the form, it, by default, assigns name of the control to the Text property. Right-click on the Text property and hit Reset and it should work.

I am assuming that you are setting up Text property in the constructor of the Button class.

>Hi, all...
>
>I'm trying to sub-class a command button in C#...the command button will always have a specific caption ('ALL'), and a bitmap with a small picture of a checkbox. (Basically, it's a generic 'select all' button used to check all entries in a checked listbox that it's associated with).
>
>No matter what text I specify in the class when I define the control, the text always appears at runtime as the 'name' of the control. I just can't seem to define a simple text/caption for the button and then have that appear at runtime.
>
>Am I missing something?
>Kevin
- Jayesh
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform