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