# OpenFileDialog - File Dialog box is not appearing

**URL:** <https://forums.pega.com/t/openfiledialog-file-dialog-box-is-not-appearing/1165>\
**Category:** General\
**Tags:** experience-designer, financial-services, 19-1, robotic-process-automation\
**Created:** [February 24, 2021, 3:06pm UTC](https://forums.pega.com/t/openfiledialog-file-dialog-box-is-not-appearing/1165 "2021-02-24T15:06:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![PaulB784](https://avatars.discourse-cdn.com/v4/letter/p/5f8ce5/32.png) [@PaulB784](https://forums.pega.com/u/PaulB784)\
**Post date:** [February 24, 2021, 3:06pm UTC](https://forums.pega.com/t/openfiledialog-file-dialog-box-is-not-appearing/1165/1 "2021-02-24T15:06:14Z")

</div>

Hi

Please see the attached. All I’m trying to do is pop up a dialog for the user to select a file, in order for me to then grab the selected filename and path.

The automation reaches as far as the openFileDialog (ShowDialog), but then stops, WITHOUT displaying the dialog.

Any ideas why this might be happening or how I might investigate further?

I’m running version 19.1.70

Many thanks.

Paul

 ![OpenFileDialog.png](https://pega1.discourse-cdn.com/pega/original/2X/3/3c0dee6bc765c94a6fda3c58b0ecde72a03027fc.png)

---

<div class="post-metadata">

**Author:** ![ThomasSasnett](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/thomassasnett/32/7690_2.png) [@ThomasSasnett](https://forums.pega.com/u/ThomasSasnett)\
**Post date:** [February 24, 2021, 3:57pm UTC](https://forums.pega.com/t/openfiledialog-file-dialog-box-is-not-appearing/1165/2 "2021-02-24T15:57:38Z")

</div>

@PaulB784 The dialog needs to be shown off of a Windows Form thread. You will need this method called off of the Click event of a button on a Windows Form. Let me know if you need an example.

---

<div class="post-metadata">

**Author:** ![PaulB784](https://avatars.discourse-cdn.com/v4/letter/p/5f8ce5/32.png) [@PaulB784](https://forums.pega.com/u/PaulB784)\
**Post date:** [February 25, 2021, 9:00am UTC](https://forums.pega.com/t/openfiledialog-file-dialog-box-is-not-appearing/1165/3 "2021-02-25T09:00:57Z")

</div>

@ThomasSasnett

Thanks Thomas, I get the dialog now.

What I need though is the full file path of the file selected in the dialog. how do I get that…it just seems to bring back a string array in the File Properties\>Filenames component.

If you have an example, that might be useful.

Regards,

Paul

---

<div class="post-metadata">

**Author:** ![ThomasSasnett](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/thomassasnett/32/7690_2.png) [@ThomasSasnett](https://forums.pega.com/u/ThomasSasnett)\
**Post date:** [February 25, 2021, 2:15pm UTC](https://forums.pega.com/t/openfiledialog-file-dialog-box-is-not-appearing/1165/4 "2021-02-25T14:15:34Z")

</div>

@PaulB784 You should use the FileName (no S) property of the Dialog. FileNames (S at the end) is used if you enable MultiSelect on the Dialog and want to get an array of all of the files they selected. In that case, you’d pass that to a ListLoop to iterate over that array to get to each one.

---

<div class="post-metadata">

**Author:** ![PaulB784](https://avatars.discourse-cdn.com/v4/letter/p/5f8ce5/32.png) [@PaulB784](https://forums.pega.com/u/PaulB784)\
**Post date:** [February 25, 2021, 2:29pm UTC](https://forums.pega.com/t/openfiledialog-file-dialog-box-is-not-appearing/1165/5 "2021-02-25T14:29:12Z")

</div>

@ThomasSasnett

Ahh, sorry, it’s in a different place to Filenames. Didn’t spot that.

Thanks for your help - all good now.

Regards.

Paul
