Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Design Time / March 2005

Tip: Looking for answers? Try searching our database.

User Control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Franck Diastein - 15 Mar 2005 19:46 GMT
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?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.