A User Interface (UI) that provides a dialog box, to open file(s). Also known as `OpenFileDialog`.
Questions tagged [fileopendialog]
104 questions
45
votes
2 answers
What is the difference between the new TFileOpenDialog and the old TOpenDialog?
What is the difference between the new TFileOpenDialog and the old TOpenDialog?
In my computer (Win 7/DXE), when I run the code, the dialogs look the same.

Gabriel
- 20,797
- 27
- 159
- 293
25
votes
3 answers
How to use native android file-open-dialog?
I've seen this dialog to pick/open a file on android in some apps and it seems to me as the native one. But I can't find a way to use it in my own apps. The language of the attached screenshot is German, but I'm sure someone will recognize…

bartolja
- 487
- 1
- 4
- 13
24
votes
1 answer
OpenDialog for WPF
I just started with WPF. Moved from Window Form.
Where do those openDialog, saveDialog gone? And a bunch of stuff.

Athiwat Chunlakhan
- 7,589
- 14
- 44
- 72
13
votes
2 answers
How to open JFileChooser with predefined size
chooser = new JFileChooser();
chooser.setSize(300, 200);
if (chooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {
.......
}
This doesn't work.
Always opens in default size.

Stefanos Kargas
- 10,547
- 22
- 76
- 101
8
votes
4 answers
JFileChooser embedded in a JPanel
I am writing a java program that needs a file open dialog. The file open dialog isn't difficult, I'm hoping to use a JFileChooser. My problem is that I would like to have a dual pane JFrame (consisting of 2 JPanels). The left panel would have a…

Shane
- 6,045
- 3
- 19
- 7
8
votes
4 answers
CDialogEventHandler_CreateInstance Identifier Not Found
I have been following several guides/examples on creating a Vista/7 open file dialog box and have now hit a dead end due to an error message stating that main.cpp(189): error C3861: 'CDialogEventHandler_CreateInstance': identifier not found.
I could…

Geowil
- 624
- 1
- 12
- 36
5
votes
3 answers
gvim open dialog file type filter
I like using the file browser in gvim sometimes, however what I don't like is that the file filter is always set to the current file type being edited.
For example, if I have a .cpp file open in the current buffer and go to the file open dialog the…

ozbob
- 155
- 7
5
votes
1 answer
How to disable automatic appending of wildcard pattern in Vista file open dialog
I'm using a file open dialog to chose image files for further editing. The filter list contains an "All supported formats" entry which represents a long list of file formats.
Since Vista automatically appends the wildcard patterns in the filter…

Daniel
- 55
- 5
4
votes
1 answer
How to make OpenDialog show modal in Firemonkey?
When I'm calling an OpenDialog from my form on ButtonClick event. The dialog does not shows as modal and is also displays in taskbar (in WindowsXP). I can return to main form and click Open again and again - popping up several dialogs at once..
How…

Kromster
- 7,181
- 7
- 63
- 111
4
votes
1 answer
VBScript file open dialog that works in XP and Vista?
In XP, you can use VBScript with the UserAccounts.CommonDialog object to bring up a File Open dialog (as described here), but apparently this does not work under Vista.
Is there a VBScript method for File-Open dialogs that will work for both?
Or…

codeulike
- 22,514
- 29
- 120
- 167
4
votes
1 answer
Filtering open dialog according pre-defined filename
Question number 1:
I want to filter open dialog that will only display certain file name. The file name is given on TEdit box. This is my code, but it still show the whole file in the directory.
procedure TForm1.ButtonLoad(Sender: TObject);
var
…

Bianca
- 973
- 2
- 14
- 33
4
votes
1 answer
Make Vista+ file dialogs work before main form is created
In a little app I want to show a open file dialog before the main form is created. I do it like this in the *.dpr:
begin
Application.Initialize;
Init; // <=========================================
Application.MainFormOnTaskbar := True;
…

Uli Gerhardt
- 13,748
- 1
- 45
- 83
3
votes
4 answers
Filter files in HTML file open dialog
I am working with file upload to the server using HTML tag:
When I click on the browse button it shows me a file open dialog. Can I filter the files by passing the extension filter to that dialog? Like we can do in .Net…

Aatif Farooq
- 1,828
- 1
- 13
- 15
3
votes
1 answer
Different file open dialog boxes on Windows XP, Windows Vista and Windows 7
I want to develop an application that works on all three versions of Windows XP, Vista and 7. The application allows people to select files to open and allows them to save the files after some operations. Each of the three versions of Windows has a…

Abhijit
- 33
- 3
3
votes
1 answer
TkInter inserts spurious wildcard in filename pattern matching
I am trying to present the user with a file open dialog for files that fit a specific pattern. They are of the form prefix_*.suffix, where the asterisk represents a wildcard.
Here is a minimal example of how I assume this should be accomplished with…

Ryan
- 169
- 2
- 6