Collections and the VS.net IDE (UserControl integration in the VS.net IDE)
-
Hi everybody, I am now struggling around with a really big problem this whole week. Let me explain you what I want to achieve (which, at least, sounds simple): I am writing a user control which is much like a TabControl. I have a tab header with several items etc. etc. The tab items are stored in a class which is derived from CollectionBase. I also can edit it well with the VS.net IDE (pressing the .. button and adding new items works well, they also show up in the header), but the problem is that the IDE doesn't store the items in the collection. They last there until compilation - then they're gone. So this is my problem - how can I make this collection persistent, so that the IDE adds the proper code to the InitializeComponents function? Furthermore, is there a way that I can change the tab by clicking on it during design-time? Like you can do with the normal TabControl... overriding OnClick or adding an event handler for Click doesn't do the job. I really need help with these problems (ASAP... I need the solution on monday). :confused: X| :confused: X| :confused: X|
-
Hi everybody, I am now struggling around with a really big problem this whole week. Let me explain you what I want to achieve (which, at least, sounds simple): I am writing a user control which is much like a TabControl. I have a tab header with several items etc. etc. The tab items are stored in a class which is derived from CollectionBase. I also can edit it well with the VS.net IDE (pressing the .. button and adding new items works well, they also show up in the header), but the problem is that the IDE doesn't store the items in the collection. They last there until compilation - then they're gone. So this is my problem - how can I make this collection persistent, so that the IDE adds the proper code to the InitializeComponents function? Furthermore, is there a way that I can change the tab by clicking on it during design-time? Like you can do with the normal TabControl... overriding OnClick or adding an event handler for Click doesn't do the job. I really need help with these problems (ASAP... I need the solution on monday). :confused: X| :confused: X| :confused: X|