Click here to Skip to main content
12,997,042 members (129,431 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Hello Code Project,

I'm currently working on a user-control containing a list of MyClass objects.
This list should be editable from the designer.
How do I add support for it?

A bit of background info on the class.
MyClass has only two propeties name Text and Image, I would like to make these accessible.

In short, I'm looking for a solution/article to add design time support for new classes.
Posted 3-May-11 2:05am
Hemant-Sharma-81 3-May-11 10:50am
@nbgangsta why dont you provide some code to let others see what have you written and what could possibly be wrong.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

BobJanova 3-May-11 8:54am
The second link here seems to contain all the OP needs.
nbgangsta 3-May-11 9:33am
I'll look into it although the third(Which you call 2nd link) seems rather empty, it's not explained or fully implemented.
Still, thanks.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

This may help:[^]

A lot hinges on the Browsable attribute - you need that on any property you're going to show in the properties window.
nbgangsta 3-May-11 9:31am
I know of the Browsable attribute, it's the Design Time support for adding items of my new class that is bugging me.
Rate this: bad
Please Sign up or sign in to vote.

Solution 4

I believe if you would have tried the suggestion @Nagy Vilmos has provided you would have got the solution on first result page.

Anyway here is the link which i believe exactly what you are looking for:
Image Gallery 1.0[^]

nbgangsta 3-May-11 14:57pm
It's looking good, I'll be sure to look into it, thanks.
Hemant-Sharma-81 3-May-11 23:54pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

There's a site called :bob: that could help. Try searching the articles for "c# list control with images" to start with.
nbgangsta 3-May-11 9:37am
Besides the obvious joke, the link is actually broke.
I'd appreciate it if you would post a link to the article you're refering to.
Nagy Vilmos 3-May-11 9:41am
0 URI = ""
1 Search term = "c# list control with images"
2 You may need to click seach as well; life's hard

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170622.1 | Last Updated 3 May 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100