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
0 answers

Chosing a directory while using askopenfilename interface in Python 3.3

I want to choose a directory(folder) while using the askopenfilename interface, because I think the interface of askopenfilename is more convenient and more clear for users to choose. Could anybody help me figure out? askdirectory…
1
vote
1 answer

Runtime error 424: object required with FileDialog.SourceDataFile & fdgOpen.SelectedItems(1)

I want to prompt the user to select the raw data file, and abort if they click "Cancel" on the FileDialog box. But i am getting the debug option and the error message "runtime error 424 object required" on the line : FileDialog.SourceDataFile =…
Thiil
  • 97
  • 1
  • 3
  • 11
1
vote
1 answer

.NET. How to hack OpenFileDialog?

Possible Duplicate: changing button text in OpenFileDialog in C#.net Have a good day, Is there a way to override Open button in .NET OpenFileDialog? I need to Change the button text and override OnClick event. If this is not possible can I put a…
Murat Korkmaz
  • 1,329
  • 2
  • 19
  • 37
1
vote
0 answers

How to upload a file on internet with VBA?

I have this HTML code and I have in my VBA code, the path of the file, but I have no idea how to upload this file.
alexandre
  • 73
  • 1
  • 2
  • 8
1
vote
1 answer

Implement save-dialog in OSX style

I want to implement a save-dialog in my program that looks like this Is there a way to get this in Java using Swing or AWT? For the open-dialog, I use java.awt.FileDialog: public boolean getData() { FileDialog chooser = new FileDialog(new…
Yakuhzi
  • 969
  • 6
  • 20
1
vote
2 answers

Can QtGui.QFileDialog.getOpenFileName() be used outside a GUI?

I am experiencing a weird behavior from this simple line of code, which I wanted to use outside a pyqt GUI class from PyQt4 import QtGui FilePath=QtGui.QFileDialog.getOpenFileName(None,'choose the file') When I first implemented it, it worked…
JacoSolari
  • 1,226
  • 14
  • 28
1
vote
1 answer

How to capture file selection from a file dialog box using javascript?

I have used the below code to create a file dialog box using java script var input = $(document.createElement('input')); input.attr("type", "file"); input.trigger('click'); File Dialog box appears correctly using the above code. How do I capture…
1
vote
0 answers

In traits.api File trait, how can I force the directory to be readonly?

I have a software that lets the user choose the database location from the traits.api File trait as shown below: class DbPreferencesHelper(PreferencesHelper): dbLocation = File() class DbPreferencesPane(PreferencesPane): view =…
Antique
  • 31
  • 2
1
vote
1 answer

SWT FileDialog error: constructor FileDialog is undefined

I'm just starting with Java basic and having this issue with SWT FileDialog. Eclipse always returns this error: The constructor FileDialog(Shell, int) is undefined Below is the full code, could you please help to advise? public class FormObject2…
Serena
  • 27
  • 4
1
vote
0 answers

opening order in msoFileDialogOpen

I wrote a macro that asks me to open some files, and then it runs more macros depending on files' names. With Application.FileDialog(msoFileDialogOpen) .ButtonName = "Seleziona" .InitialView = msoFileDialogViewList .AllowMultiSelect =…
user3664452
  • 133
  • 9
1
vote
1 answer

Getting selected dialog item to another button method

So I'm writing a windows form application where the user will select a xml file (using file dialog) from his computer and when he clicks the save button, it should save in the database. But I'm a little lost on how to get the selected item to the…
zana
  • 259
  • 2
  • 4
  • 15
1
vote
1 answer

Java cannot find symbol symbol : method getFiles()

I'm trying to use java.awt.FileDialog in an ImageJ plugin but for some reason I am getting an error that Java cannot find the getFiles method: C:\File_Opener3.java:50: cannot find symbol symbol : method getFiles() location: class…
user1639187
  • 31
  • 1
  • 4
1
vote
1 answer

Create dynamic image ListElement with fileUrl using QML

I am new to QML programming. I want to create dynamic images as ListElements in ListModel, upon clicking the "open" button of a FileDialog. My problem is that upon adding second image the first image is also replaced by the second image. How can I…
MJKhan
  • 61
  • 2
  • 7
1
vote
1 answer

How do you set up the initial directory for a FileDialog to be in sharepoint and allow you to select multiple items in VBA?

What I am trying to do is open file dialog in a network path. I have figured out how to open it in the correct location, but it sets itself up as a website. Here is the code: Set files = Application.FileDialog(3) '3 is the File Picker type …
1
vote
0 answers

Show SaveFileDialog using TriggerAction

I'm trying to get the file name from SaveFileDialog in my application.
daewoosh
  • 193
  • 3
  • 11