Property Grid

  • Thread starter Thread starter Jacek Jurkowski
  • Start date Start date
J

Jacek Jurkowski

On my property grid there is a property
that contains folder string. How to
enable user to click button and select
the folder as same as in VsNet IDE?
Are there any default editors for
known property types?
 
On my property grid there is a property
that contains folder string. How to
enable user to click button and select
the folder as same as in VsNet IDE?
    Are there any default editors for
known property types?

Yes. Open MSDN documentation for class UITypeEditor, and look for
derived classes in the inheritance hierarchy section - you'll see the
list of all documented ones. For your case, it would seem that you
need FolderNameEditor. So:

[Editor(typeof(FolderNameEditor), typeof(UITypeEditor))]
public string Folder { get; set; }

should do what you need.
 
Thnks It was very helpfull...


On my property grid there is a property
that contains folder string. How to
enable user to click button and select
the folder as same as in VsNet IDE?
Are there any default editors for
known property types?

Yes. Open MSDN documentation for class UITypeEditor, and look for
derived classes in the inheritance hierarchy section - you'll see the
list of all documented ones. For your case, it would seem that you
need FolderNameEditor. So:

[Editor(typeof(FolderNameEditor), typeof(UITypeEditor))]
public string Folder { get; set; }

should do what you need.
 
Back
Top