Using Collections of objects as public properties
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Ive got a tab control im building from scratch. the control has a collection(ArrayList) of MyTab objects. How do i expose the collection so that in the properties of the control in design view, a user may add a MyTab object and set its properties? If i simply expose the collection publicly, the "Collection..." field shows up, but the 'add' button only adds a System.Class. I need the add button to display a MyTab object. you can see specifically what i want if you create an toolbar object on a form and click 'Buttons' in the properties section. when you add a new button, it shows up on the form and a 'toolbarbutton' object is created with properties you may edit. do i have to impliment my own collection class? thanks :confused: