Top "Openfiledialog" questions

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

Customizing OpenFileDialog

I am working on winforms application in C#. What I want to achieve is to get a file from user …

c# winforms openfiledialog customizing
c# Openfiledialog

When I open a file using this code if (ofd.ShowDialog() == DialogResult.OK) text = File.ReadAllText(ofd.FileName, Encoding.Default); …

c# openfiledialog
C# Windows Forms - Select and Copy Multiple Files w MultiSelect, OpenFileDialog, & FileBrowserDialog

I'm developing a WinForms application using C# with an OpenFileDialog and FileBrowserDialog and I'd like to: Enable selection of multiple …

c# openfiledialog multi-select .net file-browser
How can I prevent an exception when I cancel an openfiledialog?

My program has a button which when clicked opens an openfiledialog to choose a picture: private string ChoosePicture() { fDialog.Title = "…

c# image exception file-io openfiledialog
OpenFileDialog InitialDirectory doesn't work

I have this code: OpenFileDialog dialog = new OpenFileDialog(); dialog.InitialDirectory = GetDataPath(...); dialog.AutoUpgradeEnabled = false; dialog.Filter = GetFilter(...); if (dialog.ShowDialog(…

c# winforms openfiledialog
How does one use OpenFileDialog in C# in visual Studio 2010

I have written a custom dialog (form) that I can use in a C# program that behaves much like a "…

c# wpf visual-studio visual-studio-2010 openfiledialog
Bringing JFileChooser on top of all windows

I seem to have a problem with my very simple implementation of a file chooser dialogue that requires me to …

java swing openfiledialog jfilechooser
C#, WPF - OpenFileDialog does not appear

I have been searching up and down the web and unfortunately never came across an issue quite like mine, so …

c# wpf openfiledialog savefiledialog
How do I add a form to a console app so that user can select file?

I have created a console application and have it working the way I want it to. Using the "Add Item" &…

c# winforms console-application openfiledialog
OpenFileDialog on .NET Core

On .NET Framework you can use System.Windows.Forms.OpenFileDialog for open files with the native Windows UI but that …

c# .net-core openfiledialog