S
Stuart Nathan
I am using vb.net
I have written my own usercontrol button.
I am writing a usercontrol toolbar using these buttons.
I have written a collection class (Button Collection) to contain these
buttons.
On my toolbar control I have this code:-
<DesignerSerializationVisibility(DesignerSerializationVisibility.Content), _
EditorAttribute(GetType(CollectionEditor), GetType(UITypeEditor))> _
Public Property Buttons() as ButtonCollection
etc.
Now when I add the Toolbar Control to a new form, I see in then properties
window the Buttons collection and this allows me to add, remove buttons etc.
And they persist because you see on the host form the various Dim statements
etc.
BUT you don't see the MyToolBar.AddRange (New myButton() {etc...
Any ideas.
I have written my own usercontrol button.
I am writing a usercontrol toolbar using these buttons.
I have written a collection class (Button Collection) to contain these
buttons.
On my toolbar control I have this code:-
<DesignerSerializationVisibility(DesignerSerializationVisibility.Content), _
EditorAttribute(GetType(CollectionEditor), GetType(UITypeEditor))> _
Public Property Buttons() as ButtonCollection
etc.
Now when I add the Toolbar Control to a new form, I see in then properties
window the Buttons collection and this allows me to add, remove buttons etc.
And they persist because you see on the host form the various Dim statements
etc.
BUT you don't see the MyToolBar.AddRange (New myButton() {etc...
Any ideas.