Property grid, directory browse functionality - Mik

01-Oct-07 08:34:01
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,
reply
 
 

Property grid, directory browse functionality - Bob Powell [MVP]

02-Oct-07 05:25:20
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.
reply
 

Property grid, directory browse functionality - Robbe Morris - [MVP] C#

03-Oct-07 07:43:39
Check the link in my signature for an easy to implement
advanced UITypeEditors.

--
Robbe Morris [Microsoft MVP - Visual C#]
.NET PropertyGrid Control - ListBox, ComboBox, and Custom Classes
http://www.eggheadcafe.com/tutorials/aspnet/270e9432-d236-47e7-b1af-5cd3abe27a75/net-propertygrid-control.aspx
reply
 

Property grid, directory browse functionality - VisualHint

03-Oct-07 08:56:06
Hello Mike,

if you need some articles about the UItypeEditor, visit the
PropertyGrid Resource List (filter by tag):

http://www.propertygridresourcelist.com

Best regards,

Nicolas Cadilhac @ VisualHint (http://www.visualhint.com)
Home of Smart FieldPackEditor.Net / DateTimePicker replacement (http://
www.visualhint.com/index.php/fieldpackeditor)
Home of Smart PropertyGrid for .Net and MFC (http://www.visualhint.com/
index.php/propertygrid)
Microsoft PropertyGrid Resource List - http://www.propertygridresourcelist.com
reply
 

Property grid, directory browse functionality - G Himangi

05-Oct-07 05:30:39
You can apply the .net FileNameEditor attribute for the property

---------
- G Himangi,   Sky Software       http://www.ssware.com
Shell MegaPack : GUI Controls For Drop-In Windows Explorer like Shell
Browsing Functionality For Your App (.Net & ActiveX Editions).
EZNamespaceExtensions.Net : Develop namespace extensions rapidly in .Net
EZShellExtensions.Net : Develop all shell extensions,explorer bars and BHOs
rapidly in .Net
---------
reply
 
Minimize Window in IE 7
promotion
Silverlight    WPF    WCF    WWF    LINQ   
JavaScript    AJAX    ASP.NET    XAML   
C#    VB.NET    VB 6.0    GDI+    IIS    XML   
.NET Generics    Anonymous Methods    Delegate   
Visual Studio .NET    Expression Blend    Virus   
Windows Vista    Windows XP    Windows Update   
Windows 2003 Server    Windows 2008 Server   
SQL Server    Microsoft Excel    Microsoft Word   
SharePoint    BizTalk    Virtual Earth   
.NET Compact Framework    Web Service   

"Everything" RSS / ATOM Feed Parser
How to send and receive messages through message queuing in .Net
How to Read text file as database
SQL Server 2005 Paging Performance Tip
Display code of web page.
Fully Scalable Excel File Importer class for .net using Microsoft Jet driver
Generic Chart Color Manager class that can be used for any charts
Helper class to style the infragistics wingrid
Using Reflection to detemine as Assembly Info in and out.
Helper class to play with Window (Owners and position)
Resolving displayname from the culture using the XmlLanguage and LanguageSpecificStringDictionary class