Hello Steve,
You need a custom UITypeEditor, that overrides GetEditStyle, and returns
UITypeEditorEditStyle.DropDown. Then you override EditValue, and have that
function create a custom form of your own creation. Be sure to use a
PropertyDescriptor (via TypeDescriptor) to change the final property, so you
get a designer transaction, and the OnComponentChanging/OnComponentChanged
functions are called automatically for your property.
Look for articles by Shawn Burke, especially the one with "RAD" in the
title, for more info on the property grid.
Regards,
Frank Hileman
check out VG.net: www.vgdotnet.com
Animated vector graphics system
Integrated VS.net graphics editor
> I followed the MSDN example that uses a StringConverter to display states
> (like Ohio, Florida,) in a PropertyGrid using a DropDown list. This works
[quoted text clipped - 7 lines]
>
> Steve
Herfried K. Wagner [MVP] - 28 Feb 2004 00:54 GMT
Frank,
* "Frank Hileman" <frankhil@no.spamming.prodigesoftware.com> scripsit:
> You need a custom UITypeEditor, that overrides GetEditStyle, and returns
> UITypeEditorEditStyle.DropDown. Then you override EditValue, and have that
[quoted text clipped - 5 lines]
> Look for articles by Shawn Burke, especially the one with "RAD" in the
> title, for more info on the property grid.
A very interesting article on the PropertyGrid can be found here:
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/u
singpropgrid.asp>

Signature
Herfried K. Wagner [MVP]
<http://dotnet.mvps.org/>
Website Address Changed!
With coded examples?
Thanks,
Steve
Joerg Jooss - 29 Feb 2004 12:25 GMT
> With coded examples?
No book, but a nice article on MSDN:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/u
singpropgrid.asp
Cheers,

Signature
Joerg Jooss
joerg.jooss@gmx.net