Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# User-controls
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 3:05am
Groulien2.9K
Comments
Hemant-Sharma-81 at 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
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  
Comments
BobJanova at 3-May-11 8:54am
   
The second link here seems to contain all the OP needs.
nbgangsta at 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
good
Please Sign up or sign in to vote.

Solution 1

This may help:
 
http://msdn.microsoft.com/en-us/library/tk67c2t8%28v=VS.100%29.aspx[^]
 
A lot hinges on the Browsable attribute - you need that on any property you're going to show in the properties window.
  Permalink  
Comments
nbgangsta at 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
good
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[^]
 
Thanks,
Hemant
  Permalink  
Comments
nbgangsta at 3-May-11 14:57pm
   
It's looking good, I'll be sure to look into it, thanks.
Hemant-Sharma-81 at 3-May-11 23:54pm
   
Welcome.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

There's a site called Green Alien | [Alien] that could help. Try searching the articles for "c# list control with images" to start with.
  Permalink  
v2
Comments
nbgangsta at 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 at 3-May-11 9:41am
   
0 URI = "www.codeproject.com"
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
0 OriginalGriff 325
1 DamithSL 265
2 CPallini 235
3 Maciej Los 190
4 Sergey Alexandrovich Kryukov 189
0 OriginalGriff 5,455
1 DamithSL 4,422
2 Maciej Los 3,860
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,010


Advertise | Privacy | Mobile
Web03 | 2.8.141216.1 | Last Updated 3 May 2011
Copyright © CodeProject, 1999-2014
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