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