Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Value editor to select a folder on the users file system
 

Value editor to select a folder on the users file system

Hi

I am working on a Software Factory to generate BizTalk solutions and projects and so one.

The question I have iswhat theeasy way would be to have the users select a folder on the file system. Build a custom edotor or is there a type available in the Argument field which automatic launch the folder selection window?

For example:

<Argument Name="RootFolder" Type="System.IO.Directory">

is there a list of available Type's somewhere?

Thanks

Kees Wouters

Kees Wouters  Friday, February 08, 2008 7:32 PM

Hi Kees,

Your argument type should still be a string, you want it to hold a string which in your case will be a valid folder on disk.

You should then add to your argument the following: a) a custom editor from which you will use thebuilt-in FolderBrowserDialog which will do all of the work of showing the UI and letting the user browse folders and b) a type converter which will consider a value valid only when it's a string and it's a folder on disk. Of course if you want to allow the user to point to non-existent folders you may want to relax this check a bit.

If you haven't used stuff like TypeConverters, UITypeEditor, etc before you may want to catchup on these with the online MSDN docs.

HTH,

-Victor.

vga  Saturday, February 09, 2008 3:41 AM

Hi Kees,

Your argument type should still be a string, you want it to hold a string which in your case will be a valid folder on disk.

You should then add to your argument the following: a) a custom editor from which you will use thebuilt-in FolderBrowserDialog which will do all of the work of showing the UI and letting the user browse folders and b) a type converter which will consider a value valid only when it's a string and it's a folder on disk. Of course if you want to allow the user to point to non-existent folders you may want to relax this check a bit.

If you haven't used stuff like TypeConverters, UITypeEditor, etc before you may want to catchup on these with the online MSDN docs.

HTH,

-Victor.

vga  Saturday, February 09, 2008 3:41 AM

You can use google to search for other answers

Custom Search

More Threads

• registry entry for GAT and GAX
• Unfoldtemplate getting information out of the RunStarted methode "replacementsDictionary"
• SCSF Stopped Working correctly
• Reference Issue
• Create Radio Buttons in a Wizard?
• enable/disable - wizard navigation buttons
• Including a Web Deployment Project Template in a Guidance Package Solution Template
• i m a beginner for Visual studo 2008
• What causes the project to be added under Guidance Packages when creating a new project?
• Can we generate .resx file and add it into app_GlobalResources folder using GAT?