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

Directory picker for Visual Basic macro in MS Outlook 2007

I wrote a Visual Basic macro for archiving attachments for Outlook 2007, but did not find a totally satisfactory way for showing a directory picker from the Outlook macro. Now, I don't know much about either Windows APIs or VB(A) programming, but…
Stefan
  • 21
  • 2
  • 2
2
votes
1 answer

c# openfiledialog to select multiple files with same order as user selects

In my c# windows application, I like to get multiple files with a same order as user select the file in openfiledialog window. I'm getting all the selected file but its order is not correct. Anyone help me to solve this problem.
2
votes
1 answer

How to control an already open Web File Dialog with VBA?

I'm trying to Upload an Image in my company's intranet site. But it opens a FileDialog, and I need to select some file then click on "OK" Button. But I don't want to do that using sendKeys. Does anyone know how to control those Microsoft Windows…
alexandre
  • 73
  • 1
  • 2
  • 8
2
votes
2 answers

open a fileDialog in visio vba

I'm coding macros in vba Word and on visio 2013. I wanted to open a fileDialog so that the user can choose where to save his file. I succeded in word, but in visio it doesn't to work the same. I wrote this in word: Dim dlg As FileDialog Dim…
user3314570
  • 237
  • 4
  • 14
2
votes
2 answers

How do I pass BufferedImage to Filedialog to save in Java?

I'm a Java beginner. I'm building a screenshot application, wherein you press PrtScn and it captures the screen. I want this screen image to be saved with the help of a Filedialog or JFileChooser. I am not sure how to pass the BufferedImage to the…
Scitech
  • 513
  • 1
  • 5
  • 16
2
votes
1 answer

Lagging File Dialogs

I have a problem with File Dialogs in WPF. I used Microsoft.Win32.OpenFileDialog and also Microsoft.Win32.SaveFileDialog in a WPF Application. In Visual Studio 2013 (either Debug or Release Build) everything runs smoothly. But if a run the…
Joschi
  • 39
  • 3
2
votes
2 answers

Tkinter FileDialog

Is it possible to allow a program user to upload their data after they've gotten an answer from the program as to which test they should use? I know I need to use tkFileDialog but I'm having trouble with running that after the first part of the…
kellie92
  • 23
  • 5
2
votes
1 answer

What method is used to make the open button in FileDialog work?

JMenuBar menubar = new JMenuBar(); JMenu file = new JMenu("File"); add(menubar,BorderLayout.NORTH); menubar.add(file); JMenuItem Open = new JMenuItem("OPEN... Ctrl+O"); file.add(Open); Open.addActionListener(new ActionListener()…
2
votes
2 answers

How to create a generic file selection dialog in QT4 for Windows

I have been searching for clues on this issue for some time now, with no results. So, here goes... I have an application that I want to have a simple button to open a file dialog window. There are other buttons on the main window that will read or…
GrueMaster
  • 101
  • 3
2
votes
1 answer

Unnecessary Constructor in FileDialog?

Can someone please explain to me why does FileDialog implements two constructors, one for Frame and one for Dialog? I mean, why didn't they use the blessings of inheritance and just created a constructor using Window? I ask this because sometimes…
Ordiel
  • 2,442
  • 3
  • 36
  • 52
2
votes
3 answers

User navigates to folder, I save that folder location to a string

How can I do this? I want a user to click a button and then a small window pops up and lets me end-user navigate to X folder. Then I need to save the location of the folder to a string variable. Any help, wise sages of StackOverflow?
Sergio Tapia
  • 40,006
  • 76
  • 183
  • 254
1
vote
1 answer

Problem importing text from a word document into excel if I use the filedialog

I have a vba code that imports some specific text from a Word document to specific cell in Excel. Sub ExtractTextFromWordToExcel() 'copy text between two specified strings from Word to Excel. Dim wordApp As Object Dim wordDoc As Object …
Frank
  • 13
  • 3
1
vote
1 answer

Program to copy, rename, and paste files. tkinter listdir error: path should be string, bytes, os.Pathlike or None

I am in the process of creating a program that prompts for source folder, destination folder, old text string, and new text string and then copies, renames, and pastes files from the source folder to the destination folder. Here is my…
1
vote
1 answer

Select files and folders with Tkinter's filedialog

I want to select files and folders with filedialog in Tkinter(Python). I try using askdirectory and askopenfilenames. But I can't find a special dialog in documentation. https://docs.python.org/3/library/dialog.html This is my sample code: root =…
Totocode
  • 19
  • 4
1
vote
2 answers

How can I display an image file with tkinter?

I want to do a Tkinter-based python program which would allow me to open an image file and to display it in a Label widget. But when I run the program and I click the button to call the OpenFile() function, it does not display the image. How can I…