Add Custom Property to Control's Task

koshy

New member
Joined
Feb 11, 2007
Messages
3
Location
Dubai,United Arab Emirates
Programming Experience
1-3
I had created a extended textbox component inherited from System.Windows.Forms.TextBox with custom properties as shown below..
2.png

1.png

I would like to add my custom properties in control's tasks
as shown above.
where i have to add the xml comment / attribute for the same,any one please help me..

VB.NET:
''' <summary>Set or Get controls mandatory status</summary>
<System.ComponentModel.Category("Features")> _
<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Always)> _
<System.ComponentModel.Description("Set or Get controls mandatory status")> _
PublicProperty MandatoryField() AsBoolean

[INDENT]Get[/INDENT][INDENT]Return _mMandatoryField[/INDENT][INDENT]EndGet[/INDENT][INDENT]Set(ByVal Value AsBoolean)[/INDENT][INDENT]_mMandatoryField = Value[/INDENT][INDENT]EndSet[/INDENT]EndProperty
 
Last edited:
I think what you are looking at there is a 'DesignerVerb' All controls is the .Net Framework have adesigner associated with them. If you want to add your properties in the tasks then you will need to implement a custom designer and add the designer verbs accordingly.
 
Back
Top