Show my dialog in property of PropertyGrid
I think your looking for a custom UI Type Editor. Basically, you want your
dialog to fire off when someone is editing the property in question.
Extend System.Drawing.Design.UITypeEditor.
Override GetEditStyle, EditValue, GetPaintValueSupported, PaintValue
On calls to EditValue, you'll pop your dialog
GetEditStyle will allow you to determine which type of UI you want to pop
(in your case a dialog)
GetPaintValueSupported lets you determine if you want to have your own
custom painting in the PropertyGrid
PaintValue lets you paint a representation of the current value into a given
Graphics context.
--
Justin Rogers
DigiTec Web Consultants, LLC
Quote:
> How can I show a dialog that i made in a property of PropertyGrid
control??
> thankyou