Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Custom Control Properties
Message
De
06/06/2003 15:07:36
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00797227
Message ID:
00797421
Vues:
24
Thanks, I have another question related to my custom control. I want to add a label to the control and I want the width to be the width of the control. I have the code for it, but it's not setting the width of the label correctly. Am I doing something wrong?

Here is my code:
   lblCategory.Style["Width"] = this.Width.ToString().Trim() + "px";
>Jim,
>
>> I am creating a custom control with properties. I want one of the properties to implement a dropdown box on a property sheet at design time. How would I define this type of property?
>
>If you make the property type an enumeration the VS .NET designer automatically creates a combo box from which the user can select.
>
>Regards,
Thanks

Jim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform