Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Custom Control Properties
Message
From
06/06/2003 15:07:36
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00797227
Message ID:
00797421
Views:
25
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform