A User Interface (UI) that provides a dialog box, to open file(s). Also known as `OpenFileDialog`.
Questions tagged [fileopendialog]
104 questions
0
votes
1 answer
MouseArea calling a FileDialog : know which element opened the FileDialog (QML)
Since my last issue with my code, I've come across a new one. Unfortunately, it's not really an implementation issue but much more an "conceptual" issue.
Well so let met introduce the case. I have a grid full of button and then to deal with their…

a-maxime
- 35
- 3
0
votes
1 answer
Unable to open password protected xlsx file generated from Apache Poi using Excel tool
I have generated an xlsx password protected file using Apache POI framework, below added my code. however, Im unable to open the generated file using Excel tool. I am able to open it using Plan Maker free tool. any advises are welcome.
I have below…

Raja
- 695
- 7
- 8
0
votes
2 answers
jQuery: How to open file open dialog box on click button
How can I make a dialog box open on click of button on swallow rendering.
It can be dynamically repeatable button as it is inside li.
//Code
var wrapper =…

Tammy
- 1,122
- 5
- 19
- 50
0
votes
3 answers
C# WinForms App - Debugging Errors using OpenFileDialog, MultiSelect, Logging
Background: I'm developing a WinForms application using C# with an OpenFileDialog and FileBrowserDialog that is supposed to:
Enable selection of multiple xls files.
After selection is made, Display selected xlsx filenames in textbox
Copy the…

Brian McCarthy
- 4,658
- 16
- 49
- 66
0
votes
0 answers
When using OpenFileDialog I see Assertion failed when trying to close form, how can I fix that?
I have added an OpenFileDialog to my button (called "Browse") press event that should open a dialog, get a file name and return it to me.
using System;
using System.IO;
using System.Windows.Forms;
namespace WindowsFormsApp1
{
public partial…

Arvo Bowen
- 4,524
- 6
- 51
- 109
0
votes
1 answer
Directory picker dialog in WebExtension
From a Firefox add-on implemented as a WebExtension, I'd like to let the user choose a local directory, if possible with the standard directory picker dialog (a variant of the "open file" dialog).
Can this be done from a WebExtension? If so,…

das-g
- 9,718
- 4
- 38
- 80
0
votes
3 answers
SetThemeAppProperties disables COM Common Dialogs
Calling SetThemeAppProperties with argument which has flag STAP_ALLOW_CONTROLS unset causes CoCreateInstance for Common Dialogs (or at list File Open Dialog, CLSID_FileOpenDialog) to return error 0x80040111.
Sample code is following:
HRESULT…

Adam Badura
- 5,069
- 1
- 35
- 70
0
votes
1 answer
Can OpenFileDialog Filter Out Certain Files By Name?
First, I have looked at this post. One of the answers seems to offer hope for filtering in ShowDialog by name. Now, here is a description of what I am trying to do:
I have this bit of C# code:
private System.Windows.Forms.OpenFileDialog…

octopusgrabbus
- 10,555
- 15
- 68
- 131
0
votes
1 answer
Saving file as same name but attaching date - referencing cell date
I'm able to run this code without any error, however is giving a slightly different objective.
It'll be added below the Do Events section according to the code in the link below.
Loop through all excel file in given folder
Objective of code:
Browse…

Tyler
- 604
- 3
- 10
- 24
0
votes
1 answer
Get Access DB filename with FileOpenDialog then run query against table within it?
I want to browse/select a database file through an Access form and run a query on it based on the file path of the selected database file. I have tried like this:
SELECT *
FROM ExternalTableName IN '[Forms]![MyForm]![SelectedFilePath]'
WHERE…

Sandip Basak
- 1
- 2
0
votes
2 answers
How to open a text file in button click event
At this point I am note sure what I am doing wrong. I wrote these lines of code
private void btnBrowse_Click(object sender, RoutedEventArgs e)
{
try
{
OpenFileDialog op = new OpenFileDialog();
op.ShowDialog();
if…

remi coupé
- 9
- 2
0
votes
2 answers
How I can set FileName after click Upload a File from local PC?
I have some short code:
private void buttonSave_Click(object sender, EventArgs e)
{
OpenFileDialog openFileDialog1 = new OpenFileDialog();
openFileDialog1.Filter = "NHC|*.nhc";
openFileDialog1.Title = @"test.nhc";
OpenFileDialog…

Barpe2
- 39
- 1
- 7
0
votes
2 answers
Regular Expression Filter for QFileDialog
I would like to display a file open dialog that filters on a particular pattern, for example *.000 to *.999.
QFileDialog::getOpenFileNames allows you to specify discrete filters, such as *.000, *.001, etc. I would like to set a regular expression as…

Jamerson
- 474
- 3
- 14
0
votes
1 answer
win10 high contrast theme file open dialog context menu is empty
Since Windows 10, the (Vista+) file dialog generated by
hr = CoCreateInstance(CLSID_FileOpenDialog, NULL, CLSCTX_INPROC_SERVER, IID_PPV_ARGS(&pfd));
does not show the dialog context menu when in a high contrast theme. It worked as expected in…

IOV
- 1
- 1
0
votes
1 answer
How to open file using Open File Dialog
I've been searching over the web for solution on how to open file using Open File Dialog in VBScript. Can someone point me on the right track?
My code below opens Excel file but I wanted it to be more dynamic in terms that the input file name can be…

Alvin Gasta
- 3
- 2