Reputation: 255
I've written a windows form control library. I've used it at my main desktop (form) application. But I can not see the properties I have added my control library !
The way to add property to a user_created component is possible with working on class view. But I can not make my properties shown in properties windows like other default controls (e.g Button)
Is there any solution for this?
Thanks.
Upvotes: 0
Views: 78
Reputation: 12505
Any public property should appear in the propety designer, e.g.
/// <summary>
/// Number Format
/// </summary>
[Category("Formatting"), DefaultValue("#,##0"), Description("Formatting string for numbers")]
public string NumberFormat { get; set; }
The attributes set how it is displayed in the property grid and are all part of the System.ComponentModel namespace
Upvotes: 1