Property Grid

  • Thread starter Jacek Jurkowski
  • 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?
 
P

Pavel Minaev

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.
 
J

Jacek Jurkowski

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top