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

How can I get the data (DoubleVar) from multiple Tkinter Entry boxes and save them to a .dat file and retrieve them later to repopulate said boxes

First let me say brand new here and brand new to codeing The whole idea I'm trying to get done is have a list of Parameters that can be saved by the user and used later with out having to change the code I have a bigger program I am working on, but…
1
vote
0 answers

How to use file dialog open multiple excel files and use 'pandas' & 'openpyxl' update excel data?

I have merged data between two excels I don't want re-write excel all data, so use pandas & openpyxl to re-write update data in specify columns #read df1 & df2 Excel file df1 = pd.read_excel('C:/Users/Desktop/Data1.xlsx') df2 =…
CHL
  • 87
  • 6
1
vote
0 answers

Set SaveFileDialog.InitialDirectory to networked file location

I'm using the Microsoft.Win32.SaveFileDialog class. When I set the InitialDirectory to a networked location (E.g. "\localhost\Share\") it opens up to the Documents folder instead of the networked file location. I've set permissions to allow…
Brian T
  • 885
  • 2
  • 9
  • 18
1
vote
1 answer

How do I write a File in python, with a variable as a path?

I am trying to open a file, which I save before, in the program. Then I want to write some text, into the file. But it gives me the following Error, I have already looked for solutions in google and also here on stackoverflow, but the solutions…
baumanager
  • 31
  • 7
1
vote
1 answer

Initial Folder and Multiple Select (FileDialog)

I have 2 problems regarding FileDialog. The below code is to copy a file from another folder into another. But if it couldn't locate that file, it would open the FileDialog to select the file. Problems: When the FileDialog is opened, it would…
Ebel Ere
  • 15
  • 5
1
vote
1 answer

How do I turn a file's contents into a dictionary?

I have a function that I want to open .dat files with, to extract data from them, but the problem is I don't know how to turn that data back into a dictionary to store in a variable. Currently, the data in the files are stored like this:…
1
vote
2 answers

Run vba for multiple selected Excel file

I have a code to open text files to copy included data and paste it in the excel file, but while select multiple files the code run only for one file and i want to run it for all selectet files CWB is the main file NWB is the file to copy from…
1
vote
2 answers

How to download csv file by giving location in Tkinter python (csv generated by converting dataframe to csv)

I am trying to download a CSV file in tkinter by selecting location and filename to save CSV file generated from dataframe by using the code. But instead of saving file like this, I want to choose location using tkinter to save my file. data = { …
1
vote
1 answer

VBA workaround for FileDialog in MS Project

I need to be able to import from, and export to, user selected files/locations in MS Project. I know that the filedialog is not available in Project 2016. Does anyone have a straightforward workaround?
alfaista
  • 13
  • 3
1
vote
1 answer

How to set filter for file type in FileDialog

I need to add the type of JPG and PNG files in the File Dialog to be added to Files of type To allow the user to see only these two types of files this is my code after click on button in GUI form. jLabel2.setText(""); Frame frame = null; FileDialog…
cnmeysam
  • 13
  • 6
1
vote
1 answer

MS Access FileDialog results in root folder

I'm using the FileDialog to select a folder for use with OutputTo. I have coded the file name. When I select a folder, I get a properly format string ie: "C:\Documents\export.xls". However, when I select the root folder, I get a improper format…
Michael C
  • 59
  • 4
1
vote
2 answers

How do I check if the Selecteditems from Filedialog is already open by user?

I need to build in a check to see if a workbook that is selected by the user through msofiledialogopen is already open on the users computer. How do you reference this workbook instead of using a fixed name like Workbooks("Example.xlsx")? edit: The…
RobChez
  • 13
  • 3
1
vote
3 answers

Tkinter freezing Python and Windows Explorer

I often used Tkinter to prompt users and get the path to a file. However, I am facing a recurrent issue, when the filedialog appears it often crashes Windows. The screen freezes, everything is blocked and when I enter the Task Manager I can see…
vianmixt
  • 703
  • 1
  • 6
  • 17
1
vote
1 answer

Create a "virtual directory" or tree view so that user can browse through files that exist in a database

I know I can browse through files when they exist by using a FileDialog. I am tracking the changes that are made in a directory and every time there has been a change I save that file in a database. I record the file path, date modified, date…
Tono Nam
  • 34,064
  • 78
  • 298
  • 470
1
vote
0 answers

How to get file path from fileurl in qt android

I am working on qt 5.14.1 with ndk version 21 and sdk version 28. I want to open a kml file using file dialog in qt android. I get a fileurl from file dialog like…