Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Collections and the VS.net IDE (UserControl integration in the VS.net IDE)

Collections and the VS.net IDE (UserControl integration in the VS.net IDE)

Scheduled Pinned Locked Moved .NET (Core and Framework)
visual-studiohelpquestioncsharpdesign
2 Posts 2 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Daniel Tak M
    wrote on last edited by
    #1

    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|

    L 1 Reply Last reply
    0
    • D Daniel Tak M

      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|

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You need to look into creating a "Designer" for your control.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups