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 / October 2004

Tip: Looking for answers? Try searching our database.

UITypeEditor for events

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Peter Kenyon - 15 Oct 2004 05:24 GMT
Hi,

I would like to use the property grid to set events for a component at
runtime, however I want to show a ... button for the events instead of a
drop-down list.

I have an implementation of IEventBindingService which works correctly (I
can see all the events my component exposes in the property grid), however
the grid still only shows the normal drop-down list.

When IEventBindingService is called I am returning a list of
PropertyDescriptors for each event. When GetEditor() is called on those
property descriptors I return an instance of my custom UITypeEditor.
However, the property grid does not make use of it. Is there something I am
missing, or is it simply not possible to do what I am trying to do?

I'd be grateful for any help on this.

Peter
Peter Kenyon - 18 Oct 2004 03:01 GMT
> Hi,
>
[quoted text clipped - 11 lines]
> However, the property grid does not make use of it. Is there something I
> am missing, or is it simply not possible to do what I am trying to do?

I've found the answer to this. If your property descriptor's type converter
returns true for GetStandardValuesSupported(), then the property grid always
displays a drop-down list, regardless of whether or not you supply a custom
type editor.

Peter

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.