Hey all, I have a question about designing component for the properties dialog - I understand how to mark a public attribute to be shown in the dialog but I want to achieve the parent-child treenode effect seen in some props. The location property is a good example:
Here is an example of the code I used for a BorderColor attribute on another component:
edit:
Forgot to mention that I dont understand how one control can have multiple properties with the same name - it must come from the parent-child thing. For instance, a Panel object can have Width & Height for both AutoScrollMargin and AutoScrollMinSize (not to mention Size), can someone explain the syntax for this please?
Thanks for any assistance..
mafro (my first post woot!)
Here is an example of the code I used for a BorderColor attribute on another component:
VB.NET:
<System.ComponentModel.DefaultValueAttribute(GetType(System.Drawing.Color), "WindowFrame"), _
System.ComponentModel.CategoryAttribute("Appearance"), _
System.ComponentModel.DescriptionAttribute("The border color used to paint the control.")> _
Public Property BorderColor() As System.Drawing.Color
Get
Return Me._BorderColour
End Get
Set(ByVal Value As System.Drawing.Color)
Me._BorderColour = Value
Me.Invalidate()
End Set
End Property
Forgot to mention that I dont understand how one control can have multiple properties with the same name - it must come from the parent-child thing. For instance, a Panel object can have Width & Height for both AutoScrollMargin and AutoScrollMinSize (not to mention Size), can someone explain the syntax for this please?
Thanks for any assistance..
mafro (my first post woot!)