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
0
votes
1 answer

Setting File Name in FileDialog

Is it possible set the text of the "Save As: " line in a FileDialog? I would like to set it so that when the dialog is created, there is a suggested name for the file instead of just blank space (as shown below). Thanks.
connorp
  • 254
  • 2
  • 12
0
votes
0 answers

Can I cancel some files in IFileDialogEvents::OnFileOk with Multiple select?

I was wondering if I can cancel some files selected from file dialogs? This is the method I'm registered to: https://msdn.microsoft.com/en-us/library/windows/desktop/bb775879(v=vs.85).aspx I would like to do my custom validations, and the…
ArielB
  • 1,184
  • 2
  • 11
  • 36
0
votes
1 answer

How to open a filedialog within an Eclipse Wizard

I'm writing an Eclipseplugin, which has to create a new project. This works so far, but i need to copy an external file into the projectfolder. I intend to have a 'Browse' button on one of my WizardPages, which opens a filedialog, where the user can…
Metalzwerg
  • 23
  • 1
  • 7
0
votes
2 answers

What is the proper way to handle multiple conditionals in a wxpython file dialog?

My wxpython GUI has a method for opening a FileDialog: def open_filedlg(self,event): dlg = wx.FileDialog(self, "Choose XYZ file", getcwd(), "", "XYZ files (*.dat)|*.dat|(*.xyz)|*.xyz", wx.OPEN) if dlg.ShowModal() == wx.ID_OK: …
bob.sacamento
  • 6,283
  • 10
  • 56
  • 115
0
votes
1 answer

PathMustExists and FileMustExists in SWT FileDialog

To date I only used Swing to build graphical user interfaces but now I also want to make myself familiar with the Standard Widget Toolkit. I already read the documentation and built a simple app. My problem is now to use the FileDialog component. I…
altralaser
  • 2,035
  • 5
  • 36
  • 55
0
votes
1 answer

How to append and make visible multiple FileDialog files in listView?

My problem is when i select single image using fileDialog , the image item rectangle gets visible in ListView but image itself is not visible.Also when i select multiple images , only single image item is added in ListView. I want to append and make…
MJKhan
  • 61
  • 2
  • 7
0
votes
2 answers

How to select all files in a FileDialog?

I want to select all files to exclude them from being displayed in my FileDialog. FileDialog fileDialog = new FileDialog(this, "Some Title", FileDialog.LOAD); fileDialog.setFilenameFilter(new FilenameFilter() { @Override …
Algram
  • 94
  • 11
0
votes
2 answers

Java: A filterable file browser for a multiplatform program?

FilenameFilters don't work with fileDialog in Windows apparently. Is there any other option for a file browser that is filterable and works across Windows, OSX, and Linux?
geoxile
  • 348
  • 1
  • 6
  • 16
0
votes
1 answer

Adding an Image to a Canvas using askopenfilename()

I'm trying to get a .gif image to go into a canvas after being selected from my PC using filedialog.askopenfilename(). The canvas will take the image if I: Don't put it in a def and Do not use the filedialog, but I can't see why this would not…
Victor Rodriguez
  • 531
  • 1
  • 10
  • 18
0
votes
1 answer

Excel save as box

I'm hoping you guys can help me. I don't really know a lot about vb coding, only some extreme basics. I'm trying to get my destfile to = Application.FileDialog, but I'm not quite sure how to go about it. I know how to make a default path destination…
Jak Parr
  • 25
  • 1
  • 1
  • 5
0
votes
2 answers

Python(3.x) - Opening File and Removing the Quotation Marks when reading file

I'm currently trying to load a .txt file that has the following inside the file: ['Chest', ['bench', 'incline'], [2, 1], [10, 10], [10, 20, 10]], 'Chest', ['decline'], [1], [1], [10] When I load the file, read the information on the file and store…
cahuizar
  • 35
  • 7
0
votes
1 answer

How to update a '.txt' file with filedialog

How would I be able to create a '.txt' file and store some information from an entry box and be able to update the '.txt' file? I understand that I would have to use: file = filedialog.asksaveasfile( mode = 'w', defaultextension = '.txt') and store…
cahuizar
  • 35
  • 7
0
votes
1 answer

Python / cx_Freeze: askopenfile / askdirectory /// filedialog

I've got a problem. I've got a program // script, which works perfectly, but when I compile it using cx_Freeze, it doesn't work: Name "filedialog" is not defined. Do I have to import it on another way?? My Script part: from tkinter import * from…
0
votes
1 answer

Allow the user to select a directory

I know the command filedialog.askopenfilename(), but is there a way to let the user search for a directory instead of a single file?
0
votes
1 answer

IE Browser hangs after opening a file dialog. Workaround?

This is a registered bug (Bug ID: 6515708) but does anyone have a workaround for it? Scenario javascript calls OpenDialog() method in applet applet starts new thread which opens the AWT FileDialog on completion, the file name is read and the…
paul
  • 13,312
  • 23
  • 81
  • 144