Hi,
I'm designing an User Control, with TypeConverter...
If I use this:
private ImageList imageList = null;
public ImageList ImageList{
get {return this.imageList;}
set {this.imageList = value;}
}
And go to design mode to my User Control properties, I can *magically*
select one of the available ImageLists...
I would like to be able to hook to a component made by me, but if I do this:
private MyComponent mycomp = null;
public MyComponent Component{
get {return this.mycomp;}
set {this.mycomp = value;}
}
What 'magic' trick do I need in MyComponent so my User Control list all
MyComponent available in the working form...
I hope you understand this...
TIA
joeycalisay - 16 Mar 2005 02:02 GMT
Have you tried overriding TypeConverter.StandardValuesCollection
GetStandardValues(ITypeDescriptorContext context) method?

Signature
Joey Calisay
http://spaces.msn.com/members/joeycalisay/
> Hi,
>
[quoted text clipped - 25 lines]
>
> TIA
Franck Diastein - 16 Mar 2005 12:07 GMT
Thank you, this will help me...
BTW, I want to able to select a file aka Image property in PictureBox...
What do I need ?
TIA again.
> Have you tried overriding TypeConverter.StandardValuesCollection
> GetStandardValues(ITypeDescriptorContext context) method?