openFileDialog - how to

This forum can be browsed by the general public. Posting is no longer allowed as the product has been discontinued.
This topic is 11 years and 3 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
kenmsp
Posts: 1
Last visit: Sat Feb 16, 2013 3:56 am

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: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

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
Last visit: Thu Feb 14, 2013 5: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
This topic is 11 years and 3 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.