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. C#
  4. Visual Studio designer woes, with the collection designer and an abstract class

Visual Studio designer woes, with the collection designer and an abstract class

Scheduled Pinned Locked Moved C#
csharpvisual-studiowinformsquestion
2 Posts 2 Posters 0 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.
  • A Offline
    A Offline
    Adam Maras
    wrote on last edited by
    #1

    I'm writing a Component for some of our Windows Forms applications. This component has a collection property exposed, and the collection is of a simple type with two members; one is a Control reference, the other is a reference to an abstract base class type. Now, in the designer, I want the developer to be able to choose from the available classes that derive from that abstract base class, and I would like the selected class's instance to have all its properties visible in the designer (as an expandable object.) Does anyone with Component/designer experience have any ideas for me?

    L 1 Reply Last reply
    0
    • A Adam Maras

      I'm writing a Component for some of our Windows Forms applications. This component has a collection property exposed, and the collection is of a simple type with two members; one is a Control reference, the other is a reference to an abstract base class type. Now, in the designer, I want the developer to be able to choose from the available classes that derive from that abstract base class, and I would like the selected class's instance to have all its properties visible in the designer (as an expandable object.) Does anyone with Component/designer experience have any ideas for me?

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Adam Maras wrote:

      Does anyone with Component/designer experience have any ideas for me?

      There are several good MSDN articles introducing adding Designer support to your custom controls This one might be a good place to start[^] With each platform version there are some changes but much of the basics are the same or at least similar. My experiences are through VS2005 so .NET 2

      led mike

      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