Bob
Tue Oct 02 02:25:20 PDT 2007
You can implement your own UITypeEditor that shows a dialog instead of a
popup. In the editor itself you would show a file-open dialog.
You can then use a string property in your data object and decorate the
property with the EditorAttribute specifying your own UITypeEditor.
The PropertyGrid will do the rest...
--
--
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting
http://www.ramuseco.com
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
"Mike" <Mike@discussions.microsoft.com> wrote in message
news:A4D50E59-33A0-45E7-B959-F447EC45AFC5@microsoft.com...
> Hi! How can I implement Directory Browse functionality in the PropertyGrid
> control similar to BackgroundImage or Icon in VS 2005 ?
> I can not find any info on that. May be I should be more generic and ask
> how
> I can lunch a custom form from the PropertyGrid control ? I searched for
> it
> with no result.
>
> Any idea/sample/url is greatly appreciated.
>
> Many thanks in advance,