I'm not sure if the title was descriptive enough, but I'll explain.
I created 2 objects. 1 Is a container, the 2nd is a tab object... I want to be able to load tabs onto the container at runtime, but more and most importantly, during build time. (Note* Though I use the word Tabs, i'm not building a tab control, it's more like a task list with multiple fields) I figured I'd do something like:
A few questions with this would arise... Tabs as Collection.... of what? Well, I would like to tell vb that it's a collection of to-be-created qltabs - the custom class I wrote for tabs...I'm very excited to find the solution to this because it would answer so many other questions I have.
It works, but needless to say, not as intended... It opens up the collection editor while in the properties panel, but at design time, I want to be able to use the Collection Editor to add tabs to the contianer. Also, is the a way to have the context menu show with the option to edit the collection of a custom control when you right click on a control like the tree view for example?
I read a tutorial that wasn't helpful and it seems like this is somewhat of a drawn-out process. But could someone set me in the right direction?? Thanks.
I created 2 objects. 1 Is a container, the 2nd is a tab object... I want to be able to load tabs onto the container at runtime, but more and most importantly, during build time. (Note* Though I use the word Tabs, i'm not building a tab control, it's more like a task list with multiple fields) I figured I'd do something like:
VB.NET:
[COLOR=SeaGreen]'In the container Class...[/COLOR]
[COLOR=RoyalBlue]Public [/COLOR]Tabs [COLOR=RoyalBlue]As [/COLOR]Collection
[COLOR=RoyalBlue]Property [/COLOR]TabCollection() [COLOR=RoyalBlue]As [/COLOR]Collection
[COLOR=RoyalBlue]Get[/COLOR]
[COLOR=RoyalBlue]Return [/COLOR]Tabs
[COLOR=RoyalBlue]End Get[/COLOR]
[COLOR=RoyalBlue]Set[/COLOR]([COLOR=RoyalBlue]ByVal [/COLOR]value [COLOR=RoyalBlue]As [/COLOR]Collection)
Tabs = value
[COLOR=RoyalBlue]End Set
End Property
[/COLOR]
It works, but needless to say, not as intended... It opens up the collection editor while in the properties panel, but at design time, I want to be able to use the Collection Editor to add tabs to the contianer. Also, is the a way to have the context menu show with the option to edit the collection of a custom control when you right click on a control like the tree view for example?
I read a tutorial that wasn't helpful and it seems like this is somewhat of a drawn-out process. But could someone set me in the right direction?? Thanks.