Page 1 of 1

openFileDialog - how to

Posted: Mon Mar 19, 2012 4:14 pm
by kenmsp
I would like to use the "openFileDialog" within Primal Forms Community Edition and PowerShell. Could someone show me an example of how to associate a button to the openFileDialog pop up ? I can't drag the "openFileDialog" onto the GUI form. TIA.

openFileDialog - how to

Posted: Mon Mar 19, 2012 4:41 pm
by Alexander Riedel
That dialog is not supported in the Community Edition. You will have to code that by hand. Please see here:
http://blogs.technet.com/b/heyscripting ... ber-1.aspx

openFileDialog - how to

Posted: Mon Dec 03, 2012 10:15 am
by aaron-saic
Actually this can be done, as I had looked around on google and found an answer here on the support forum somewhere...

Basically do the following:

- Add a button to your form. For the on click action:

$openfiledialog1.ShowDialog()



Here is the link to where I found it: viewtopic.php?f=18&t=4281#p23411