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
1
vote
2 answers

Memory leak analysis and help requested

I've been using the methodology outlined by Shivprasad Koirala to check for memory leaks from code running inside a C# application (VoiceAttack). It basically involves using the Performance Monitor to track an application's private bytes as well as…
1
vote
1 answer

how to show Browse video from hard disk in Tkinter GUI?

I'm new with Tkinter concepts, so I'm trying to make a simple GUI in which I want to stream my webcam. In addition to this I'm trying to take snapshots and by using a browse button select a video file from my hard disk and display on the panel if…
deadend
  • 105
  • 1
  • 1
  • 8
1
vote
1 answer

python cx_Freeze askopenfile

Following file (Python 3.7) does everything it is supposed to do. When I press the “Open file” button it opens “askopenfilename” dialog. import tkinter as tk from tkinter import ttk from tkinter import filedialog as fd from tkinter import…
corkplug
  • 11
  • 2
1
vote
1 answer

Trying to catch an Exception using FileDialog

i am new to Java and i created a small table inside a GUI from which i want to open a .txt file in order to fill the table with the file's content. I've tried to replicate the code from an example of my teacher but i havent managed to "catch an…
Zest
  • 127
  • 1
  • 7
1
vote
1 answer

How can I put the cursor in the File List of an open FileDialog?

Is there a way to control a FileDialog in VBA so that the cursor moves to the top of the File List in an open FileDialog? (The cursor always seems to be in the File name control of the FileDialog.) I would like to use the down arrow key to move…
DGP
  • 167
  • 1
  • 14
1
vote
1 answer

How to hide file system structure of SaveFileDialog in C#

I am using the following code to open SaveFileDialog to save CSV/TXT files: SaveFileDialog saveDialog = new SaveFileDialog(); saveDialog.Filter = "CSV Files (*.CSV)|*.CSV|CSV Files (*.TXT)|*.TXT"; saveDialog.RestoreDirectory = true; …
user8719628
1
vote
1 answer

how to open Filedialog in desired directory

I have two buttons both open filedialog what i want both button should always open their related directories in filedialog when they press.In my case filedialog keep the last open directory which i don't want.
user542719
  • 307
  • 1
  • 9
  • 21
1
vote
0 answers

a Python module that adds "Places" and/or "Devices" to a Tkinter filedialog?

Is there a distributed Python gui module that adds "Places" and/or "Devices" to tkinter's filedialog? For example, when I open a file manager, like Dolphin for KDE desktops, the file manager has a left side bar with special "Places" and other…
user12711
  • 693
  • 1
  • 7
  • 21
1
vote
2 answers

Java FileDialog selecting directories: Mac OSX only?

I read that via System.setProperty("apple.awt.fileDialogForDirectories", "true"); users can select directories via a FileDialog, now the FileDialog evoces the native file chooser, so that is exactly what i want but in the line above it reads:…
Samuel
  • 18,286
  • 18
  • 52
  • 88
1
vote
1 answer

How to use a file that was selected through file dialog?

My problem is how to use the file I will select with askopenfilename() later on, for example to put it the canvas ? What should I put instead of the "?" at "Im = ?" ? Thank you ! Sorry I am very much a beginner import tkinter as tk from tkinter…
Jos Maesen
  • 21
  • 1
1
vote
1 answer

QML FileDialog set title from C++ code

I have the following qml file: import QtQuick 2.2 import QtQuick.Dialogs 1.2 FileDialog { property string myTitle: "Select file to open" property string myfilter: "All files (*)" id: fileDialog objectName: "fileDialogObj" title: myTitle …
mtb
  • 1,350
  • 16
  • 32
1
vote
2 answers

How to print contents of text file after using askopenfilename to get the location

I'm writing a program that just has a browse button to search for a file and then opens the file you select. I know you can use 'askopenfile' but i wanted to get the name first so it could be displayed in an Entry box in my tkinter window, then the…
1
vote
2 answers

Excel VBA, using FileDialog to open multiple workbooks and reference them

I am currently using to following code to prompt the user for a workbook, open it, get some information from it and then close it. at the moment, I address the opened workbook by using the workbooks collection with and index ("woorkbooks(2)"). Now I…
Sergey
  • 123
  • 2
  • 10
1
vote
1 answer

Tkinter NameError only when running script from shell

I've got a Tkinter Python program, a reduced version of which can be found below: from tkinter import * from tkinter.ttk import * filedialog.askopenfilename() When I run this script from IDLE, I do not get any errors. However, when run from…
JPeroutek
  • 558
  • 1
  • 7
  • 20
1
vote
1 answer

Restrict FileDialog folders

I'm using QtQuick Dialogs 1.2 in Qt application over Linux and I want to restrict my FileDialog to just two paths specified by me. My FileDialog is something like that: FileDialog { id: fileDialogExample title: qsTr("File Dialog example") …
Juan Garcia
  • 843
  • 2
  • 11
  • 34