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

Tkinter filedialog NameSpace error

So I'm able to run this perfectly fine through IDLE, but when I try to run it through the shell by double clicking, I get the following when I click the "Select Directory" button: "NameError: name 'filedialog' is not defined" I'm just getting the…
Kyrubas
  • 877
  • 8
  • 23
0
votes
0 answers

How to customize Swing's FileDialog?

I want to add the some additional functionality to the FileDialog. That is I want to add File Format and Encoding options to the default FileDialog of Swing. How can I add additional functionality? Here is Default FileDialog code: public class…
user3556256
  • 47
  • 3
  • 9
0
votes
2 answers

tkinter filedialog open method strange behavior

I am new to Tkinter and GUI design but I'm definitely excited to learn. I'm trying to create a user interface that allows a user to load an excel spreadsheet .xls. If the spreadsheet is successfully opened then a button should pop up allowing the…
user3761743
  • 145
  • 3
  • 14
0
votes
1 answer

askopenfilenames selecting multiple files

Using python 3.3 on a unix platform. I have seen many examples where the following code works but I am having an issue. When I select multiple files, I get an error message dialog box: "File /python/input_files/file1.txt file2.txt" does not exist.…
user3748852
  • 1
  • 1
  • 2
0
votes
2 answers

Block FileDialog from displaying unwanted extensions

I want to use a file dialog in a WPF program. I'm setting the Filter property to a specific extension, but the user can just type "* . *" in the file name line and thus bypass the filter. Is there a way to stop a user from doing it and keep the…
CodeMonkey
  • 11,196
  • 30
  • 112
  • 203
0
votes
1 answer

File dialogue replacement?

I have a small app where some people can have a 1:1 chat with each other. Now I want to implement a possibility to share some files (images, sounds, whatever,...). My problem: I need a possibility to let the user choose such a file. Since I did not…
Elmi
  • 5,899
  • 15
  • 72
  • 143
0
votes
0 answers

DirectoryDialog hide shell in java

I have a method that displays a DirectoryDialog. But I call it within a JFrame. When I call the method below, it opens up a "Shell", which is basically like another window, and then pops up the DirectoryDialog. How do I get rid of this JFrame-like…
ThePrince
  • 818
  • 2
  • 12
  • 26
0
votes
2 answers

Using a dictionary outside of the void its created in

Im unsure about how i can use a dictionary i create when i click a button which mean that i cannot reference to it from within another function. This is probably very basic, but i simply cannot remember how this is done. This is the button that…
Daniel Jørgensen
  • 1,183
  • 2
  • 19
  • 42
0
votes
2 answers

FileDialog doesn't show after get input from console

When I want to open a FileDialog after I get some input from the console it fails. See the code below. When I first call openFileDialog and then chooseOption it works fine. Does anybody know how this is possible? public class SomeClass { int choice…
Lutske
  • 117
  • 3
  • 17
0
votes
2 answers

MS-ACCESS Copying file via vba with file dialog

I'm trying to create a button that opens up a file dialog, then lets you select a image to copy into a folder with the database. I've been working with this code but I'm stuck at the filecopy command, I can't seem to format it correctly. I use the…
user2744572
  • 21
  • 1
  • 9
0
votes
1 answer

How to make wx.FileDialog(wx.FD_OPEN mode) check input file name extension against the wildcard?

I noticed that even if you set your wildcard to match *.txt files only, all wx.FileDialog does is list all txt files under that directory, still you can input any existent file with a different extension and hit open button without having any…
Shane
  • 4,875
  • 12
  • 49
  • 87
0
votes
1 answer

java.awt.FileDialog prematurely resolves symbolic links

I am having trouble opening files using java.awt.FileDialog without symbolic links being automatically resolved. E.g. given /my/folder/with/links /my/folder/with/links/foo_link And /my/folder/with/originals /my/folder/with/originals/foo And there…
0__
  • 66,707
  • 21
  • 171
  • 266
0
votes
1 answer

Error when using Application.FileDialog(msoFileDialogSaveAs)

I have this code that's used for getting a file ready to save and saving, however it causes Excel to 'encounter an error' and close. I have pinned the error down to the .execute line. Why does this cause the crash and is there a work around? Sub…
Tom D
  • 3
  • 4
0
votes
1 answer

Can windows 7 and 8 common dialogs be hooked

I am trying to replace all Windows Common (Open/Save) filedialog calls with my own custom dialog. From what I read so far, I could do this with a hook on the calls either by writing my own or by using libraries like detours or easyhook. But someone…
Prad Lal
  • 113
  • 7
0
votes
3 answers

FileDialog filter not updating when changing selection

I have a simple issue. I have a filedialog in a wpf application. Things works fine when I run the application for the first time. But when I change the file extension, and change back, I dont see anything. This is the code: Filedlg.FileName =…
Naresh
  • 633
  • 1
  • 7
  • 26