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

VBA use filedialog to search, then copy and paste

Right now my code copies & pastes all of the data without any specific selection criteria. I'm trying to copy and paste specific information from certain files based upon their name into the active worksheet. I believe there is some function that I…
user8285660
0
votes
1 answer

filedialog to open files within a folder (tkinter)

I have a question about code from this post filedialog, tkinter and opening files I want to implement this into my own code but when i run this (without my code, just the code you see) all the folders that show up are empty and I can't actually open…
eliza.b
  • 447
  • 1
  • 8
  • 16
0
votes
1 answer

tkinter filedialog with statement

I'd like to store a file. For this reason, I use filedialog with a 'with' statement. As long as I chose a file and save it, everything works fine. However, when the filedialog is canceled, I get the following error: File "...\src\test.py", line 7,…
Molitoris
  • 935
  • 1
  • 9
  • 31
0
votes
3 answers

How do I get the filename of a file to open and the filename of a file to save in python

I'm sorry about the unclear title, I don't really know how to put it, but I am trying to make a text editor in python. I want to get the filename of a file the user open or saves in python: def openFile(): file =…
Conner Dassen
  • 729
  • 4
  • 11
  • 28
0
votes
1 answer

how to set the file when the file dialog is open in VS (c#)

I have a software that clicks the button 'Add photo': private void OpenOpen() { var elems = webBrowser1.Document.GetElementsByTagName("input"); foreach (HtmlElement elem in elems) { if…
Max
  • 63
  • 1
  • 7
0
votes
1 answer

Copying Multiple files using SWT filedialog

I'm working a transfer file program and my program is working but I'm having a problem because when I select multiple files and put it on a textbox the source directory can't read what is on the textbox this is my code Opening…
jowdislove
  • 27
  • 1
  • 9
0
votes
2 answers

wxFileDialog filename textbox appears as clipped

I display an Open File dialog using the following code: wxFileDialog fileDialog( this, wxEmptyString, "E:\\Testfiles", "SOME_TEST_FILE_WITH_LONG_NAME.txt", "TXT files (*.txt)|*.txt", wxFD_OPEN | wxFD_FILE_MUST_EXIST |…
Gino Mempin
  • 25,369
  • 29
  • 96
  • 135
0
votes
1 answer

User input FileDialog to path for source files in VBA

SOLVED As it was pointed out by @z32a7ul I was using the wrong variable to state the path after the FileDialog. It was supposed to be OutPathS instead of OutPath. What code does: I have a code that reads the files in a folder, prints the names in…
DGMS89
  • 1,507
  • 6
  • 29
  • 60
0
votes
1 answer

Setting file extension for File Dialog in Objective-C

I was wondering how to set the file extension for a file dialog so that only those files with that extension show up in the folder. I know there is a way to set if files/directories can be seen, and the folder that the file dialog looks in, but…
Brandon
  • 127
  • 4
  • 10
0
votes
3 answers

Tkinter store filename through menubar button

I have created functions that can display graphs and tables of csv files in a GUI I am making with tkinter. I have a menubar with an import button, a plot button, and a table button. The plot and table button can successfully plot graphs and tables…
Andrew Louis
  • 303
  • 1
  • 2
  • 15
0
votes
0 answers

FileDialog doesn't open at desired start path

So I have a method that takes in some information, and returns the path name as a string. Everything works the way I would like it to, except when the file browser opens I would like to open up in the folder "startPath". However it opens up in the…
M. Rogers
  • 367
  • 4
  • 18
0
votes
1 answer

filedialog - returns addresses u'/path/to/the/file' instead of 'path/to/the/file'

I am trying to select files and folders using filedialog.askopenfilenames in spyder. My python is 2.7.12. My code: import tkFileDialog as filedialog files = filedialog.askopenfilenames(initialdir = "/media/note/Results", title = "Select zipped…
rfc
  • 1
0
votes
1 answer

Filter not working in FileDialog

I have to replace JFileChooser with FileDialog. I could not Filter out the file. Following is the code. The filter is also not visible on the Save FileDialog and also user is able to save the file file with different ext. The environment is windows…
0
votes
0 answers

Application memory increases a lot with a FileDialog: Using Loader this memory is not free

I have a simple QML application where I open a FileDialog when a button is pressed. I have realized that when I open the FileDialog the current application memory is increased a lot (12 Mb only with the dialog), so I have added a Loader to the…
Diego
  • 336
  • 2
  • 21
0
votes
1 answer

Tkinter filedialog reading in a file path

I have searched around and have not really found the answer to my problem yet. I am trying to browse through files to take in an image file and a use its path as a variable to pass into my qr function, but when using file dialog it gives me this…
Elias Gomez
  • 65
  • 1
  • 8