all groups > dotnet windows forms designtime > march 2005 >
You're in the

dotnet windows forms designtime

group:

User Control


User Control Franck Diastein
3/15/2005 7:46:35 PM
dotnet windows forms designtime:
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...

Re: User Control joeycalisay
3/16/2005 9:02:43 AM
Have you tried overriding TypeConverter.StandardValuesCollection
GetStandardValues(ITypeDescriptorContext context) method?

--
Joey Calisay
http://spaces.msn.com/members/joeycalisay/


[quoted text, click to view]

Re: User Control Franck Diastein
3/16/2005 12:07:21 PM
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.

[quoted text, click to view]
AddThis Social Bookmark Button