Questions tagged [filedialog]

Refers to both OpenFileDialog and SaveFileDialog in .NET WinForms.

This tag represents both the OpenFileDialog class and SafeFileDialog class from .NET. More information about them on MSDN here and here respectively.

358 questions
3
votes
0 answers

Error message Filedialog tkinter / FIFinderSyncExtensionHost is implemented in both

I'm using filedialog with tkinter to browse a file in my Python application. When I click on 'browse' I have this message : objc[84539]: Class FIFinderSyncExtensionHost is implemented in both …
userHG
  • 567
  • 4
  • 29
3
votes
1 answer

tkinter.filedialog open file and savefile methods . How to choose?

tkinter.filedialog ... asksaveasfile() vs asksaveasfilename() askopenfile() vs askopenfilename() when would I use one vs the other?
Patrick Dennis
  • 323
  • 1
  • 7
3
votes
0 answers

Delphi firemonkey Mac OSX modal form moves behind main form when closing file dialog

Delphi 10.2 Tokyo, firemonkey framework. I am experiencing a weird issue with Mac OSX and file dialogs. I have a form, lets say "Form1". This form open another form "Form2" modal via a buttonclick. "Form2" has a button, which open a file dialog (for…
user7415109
3
votes
2 answers

Get a file name with tkinter.filedialog.asksaveasfilename to append in it

from an GUI application designed with tkinter, I wish to save some datas in a file in appending mode. To get the file's name I use asksaveasfilename from filedialog module. Here is the code: from tkinter.filedialog import asksaveasfilename def…
Jal
  • 205
  • 1
  • 2
  • 8
3
votes
1 answer

Python 3.3 tkinter.filedialog.askopenfile() leaves an unresponsive Tk window

I'm trying to have the user select a file through a pop-up directory browser. Looking things up suggested that I use filedialog.askopenfile(), which works but leaves a small unresponsive tk window that I'd rather not have because any attempt to…
wes3449
  • 305
  • 1
  • 2
  • 10
3
votes
1 answer

Filedialog CustomPlaces confusion

I faced a strange behavior using the following code: FileDialog openFileDialog1; // ... openFileDialog1.CustomPlaces.Add(@"C:\whatever\"); This compiles with no errors using .NET framework 2.0. The code runs well under Windows 7. But under Windows…
joe
  • 8,344
  • 9
  • 54
  • 80
3
votes
4 answers

How do I center a java.awt.FileDialog on the screen

I have never been able to figure this one out; the usual suspects don't work. Given: FileDialog dlg=null; dlg=new FileDialog(owner,"Select File to Load",FileDialog.LOAD); dlg.setFile(null); dlg.setVisible(true); is there any way…
Lawrence Dol
  • 63,018
  • 25
  • 139
  • 189
3
votes
2 answers

QT 5.1.1 QML FileDialog - Unkown component (M300)

I'm using QtQuick2 of QT 5.1.1 When I try to include and use the QML Elem FileDialog like described here I just get Unkown component (M300) If I hover over import QtQuick.Dialogs 1.0 it says "library at: OS-PATH/qml/QtQuick/Dialogs" but in this…
Chriffer
  • 45
  • 8
3
votes
2 answers

Swing: FileDialog stuck in long process

We use FileDialog for open/save menus. When we save the file, first we populate the modal window using FileDialog. After user inputs the file name, the saving operation takes a long time ( up to 45 seconds) as there is a time consuming export…
Raistlin
  • 407
  • 1
  • 8
  • 19
3
votes
2 answers

How to open FileDialog ( open / save ) in vba without references

I'm working on a machine which runs on Windows XP but has no Office or .NET Framework installed. I would like to have the possibility to open/save files by opening a FileDialog. Unfortunately they are not listed (in VBA editor) as a Class. How do I…
Noldor130884
  • 974
  • 2
  • 16
  • 40
3
votes
4 answers

Having problems with .InitialFileName view with FileDialog command

So I am using the FileDialog to select a folder full of images that I am putting into a PowerPoint presentation and I am having problems getting the right initial view to come up. Here is what I have strFolder = InitDir Set fldr =…
Daniel Diaz
  • 33
  • 1
  • 1
  • 6
3
votes
1 answer

How to filter a report object when saving through FileDialog in MS Access

I am attempting to save an rtf file using FileDialog and would like to filter using a where clause. This is what I have: Set dlgSave = FileDialog(msoFileDialogSaveAs) With dlgSave .Title = "Provide the place to save this file" .ButtonName =…
Curtis Inderwiesche
  • 4,940
  • 19
  • 60
  • 82
3
votes
3 answers

Java GetFile returns incorrect filename after using SetFile

I have some Java code: public static String getSaveFilePath(String title2) { FileDialog fd = new FileDialog(new Frame(), "Save As...", 1); fd.setFilenameFilter(new FilenameFilter() { public boolean accept(File dir, String name) { …
2
votes
1 answer

CFileDialog getpathName not reading Japanese

I have a folder name in Japanese. CFileDialog getpathNameis returning some question marks when the folder is selected. Is there some way to solve it?
sherin_
  • 352
  • 4
  • 15
2
votes
1 answer

How to detect if user pressed cancel button or selected root (primary disk) with java.awt.FileDialog in MAC OS?

Does somebody knows how to detect if user selected cancel button or root disk in java.awt.FileDialog in Mac OS (10.6 - Snow Leopard)???? I have the below code: System.setProperty("apple.awt.fileDialogForDirectories", "true"); FileDialog fd = new…
user967580
  • 21
  • 3