Page 1 of 1

Launching the file/folder browser.

Posted: Thu Jun 07, 2012 9:58 am
by StupidSexyFlanders
I have been looking for this information for the past hour, but most of the search strings (e.g. 'open file') produce massive amounts of inapplicable results.

Anyway, all I want to to do is add a simple 'select file' dialog to my form. For the life of me I cannot suss out how to take the 'folderbrowserdialog' or 'openfiledialog' tools and make the functional buttons on the form.

If there is a step-by-step somewhere that I missed in my searching, please point the way! :)

edit: Failed to mention - I am using PS Studio 2012 3.0.4mbaker2012-06-07 16:59:34

Launching the file/folder browser.

Posted: Thu Jun 07, 2012 10:46 am
by davidc
PowerShell Studio has two control sets can provide good examples for what you want: TextBox - Browse For File TextBox - Browse For Folder All you have to do is alter the Filter property of the OpenFileDialog or the FolderBrowserDialog depending on the Control Set. David

Launching the file/folder browser.

Posted: Mon Jun 11, 2012 8:21 am
by StupidSexyFlanders
Thanks! That worked well.