openFileDialog - how to

This forum can be browsed by the general public. Posting is no longer allowed as the product has been discontinued.
User avatar
kenmsp
Posts: 1
Joined: Mon Mar 19, 2012 4:14 pm

openFileDialog - how to

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

User avatar
Alexander Riedel
Posts: 7458
Joined: Tue May 29, 2007 4:43 pm

openFileDialog - how to

Post 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
Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
aaron-saic
Posts: 2
Joined: Thu Feb 14, 2013 6:43 am

openFileDialog - how to

Post 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