Questions tagged [openfiledialog]

The OpenFileDialog is a (component) class in the .NET Framework that prompts the user to open one or multiple files.

The OpenFileDialog component allows users to browse the folders of their computer or any computer on the network and select one or more files to open. The dialog returns full path names of the files selected by user.

1068 questions
8
votes
3 answers

Customizing OpenFileDialog in .Net

In need to create native looking customized .Net OpenFileDialog in Windows XP and Windows Vista/7. Add new controls to it, etc. Is there any way to customize standard OpenFileDialog in .Net (WPF specifically)? I've looked through the solutions like…
Pavel
  • 81
  • 1
  • 2
8
votes
4 answers

Should I implement File Dialog as Singleton?

I'm developing a swing based application where I'm using many FileDialogs? So I say why not to make just one FileDialog object instead all of these instances and use it in the whole project? Is this a good assumption? does this have any performance…
Feras Odeh
  • 9,136
  • 20
  • 77
  • 121
8
votes
2 answers

Can the .NET OpenFileDialog be setup to allow the user to select a .lnk file

I want to show a dialog that will allow the user to select a shortcut (.lnk) file. My problem is that the dialog tries to get the file/URL the shortcut is pointing to rather then the .lnk file itself. How can I make it allow .lnk files to be…
McBainUK
  • 412
  • 1
  • 5
  • 15
8
votes
2 answers

How to select the file which is already opened using OpenFileDialog

I am trying to select the file which is already opened in quickbook software. code : OpenFileDialog ofdBrowseVInv = new OpenFileDialog(); ofdBrowseVInv.Title = "Locate QuickBook Company File"; ofdBrowseVInv.Filter =…
Kavitha
  • 1,447
  • 2
  • 22
  • 37
8
votes
1 answer

FolderBrowserDialog with input field

I'm not sure what to google here in order to explain what I wish to do, so I'll try here: I'm using both OpenFileDialog and FolderBrowserDialog in my code for browsing for files and directories respectively. When the dialogs open, the user gets only…
Idanis
  • 1,918
  • 6
  • 38
  • 69
7
votes
3 answers

Open File Dialog in Android?

Can I use OpenFileDialog in Android? I want to choose image from OpenFileDialog and save image to a SQLite database and resource folder. How do I do that?
thinzar
  • 1,530
  • 5
  • 25
  • 46
7
votes
1 answer

How to open a "Select folder" dialog from NodeJS (server-side, not browser)?

Why would you want to show a file/folder dialog on the server-side? I'm building a project that is intended to be ran locally (both the Node server-side part and client-side in the browser), where I'd like to be able to select a path, add it to…
chamberlainpi
  • 4,854
  • 8
  • 32
  • 63
7
votes
4 answers

ValueError: Invalid file path or buffer object type:

Here is a simplified version of some code that I have. In the first frame, the user selects a csv file using 'tk.filedialog' and it is meant to be plotted on the same frame on the canvas. There is also a second frame that is capable of plotting the…
user9451400
7
votes
4 answers

C# OpenFileDialog Non-Modal possible

Is it possible to create/have a non-modal .net OpenFileDialog I have a UI element in the main dialog which always need to be available for the user to press.
maxfridbe
  • 5,872
  • 10
  • 58
  • 80
7
votes
1 answer

I can't get Delphi Context-sensitive help working in open and save dialogs

I have a Delphi 2006 app with a CHM help file. It all works OK except that I cannot get any help to connect to the "Help" button on the TOpenDialog and TSaveDialog. A simple program demonstrating this is shown below. Clicking button 2 opens the…
rossmcm
  • 5,493
  • 10
  • 55
  • 118
7
votes
2 answers

Openfiledialog Multiselect

I am using a multiselect file dialog to browse multiple pictures and add them to a datagridview then from there store them in the database. Something was wrong in term of that I only managed to store the first selected picture (No syntax or runtime…
Yousef Imran
  • 1,071
  • 2
  • 10
  • 16
7
votes
6 answers

c# Openfiledialog

When I open a file using this code if (ofd.ShowDialog() == DialogResult.OK) text = File.ReadAllText(ofd.FileName, Encoding.Default); A window appear and ask me to choose file (The File Name is blank as you can see on the image) If I press…
a1204773
  • 6,923
  • 20
  • 64
  • 94
6
votes
0 answers

Can you add your application to the places bar in the OpenFileDialog?

I have noticed on Vista/7 that when the OpenFileDialog is used in some applications (e.g. MS Word, Visual Studio) it also contains the application itself in the places bar with a list of favourite folder locations which contains documents of the…
Jeb
  • 3,689
  • 5
  • 28
  • 45
6
votes
1 answer

OpenFileDialog Multiselect problem

I have standart OpenFileDialog var openFileDialog = new OpenFileDialog { DefaultExt = "mpo", Filter = "Image file |*.mpo", Multiselect = true, RestoreDirectory = true, }; and when i try to use it to open several photos on "fujifilm…
Steck
  • 1,171
  • 9
  • 19
6
votes
3 answers

OpenFileDialog with many extensions

I need to have an open file dialog for 1000 file types (*.000 - *.999). But adding it to the filter, the dialog gets really slow on choosing file types. Is there anything I can do to speed this up? string text; for (int i = 0; i <= 999; i++) { …