About 938 results
Open links in new tab
  1. OpenFileDialog Class (System.Windows.Forms) | Microsoft Learn

    The following code example creates an OpenFileDialog, sets several properties to define the file extension filter and dialog behavior, and displays the dialog box using the …

  2. The OpenFileDialog - The complete WPF tutorial

    In this article we'll focus on the OpenFileDialog class, which makes it very easy to display a dialog for opening one or several files. Simple OpenFileDialog example

  3. OpenFileDialog In C#

    C# OpenFileDialog control is used to browse and select a file on a computer. In this article, you'll learn how to use the OpenFileDialog in C#.

  4. C#.WinForms - OpenFileDialog Example - Dot Net Perls

    Feb 18, 2023 · OpenFileDialog This allows users to browse folders and select files. It can be used with C# code. It displays the standard Windows dialog box. The results of the selection made in …

  5. How do I use OpenFileDialog to select a folder? - Stack Overflow

    There is a hackish solution using OpenFileDialog where ValidateNames and CheckFileExists are both set to false and FileName is given a mock value to indicate that a directory is selected.

  6. How to Use OpenFileDialog to Select a Folder in C#: Better …

    Dec 10, 2025 · OpenFileDialog is part of the System.Windows.Forms namespace (or Microsoft.Win32 for WPF) and is explicitly designed to select files, not folders. By default, it enforces file validation …

  7. C# OpenFileDialog Example - The Developer Blog

    You can access the file specified by the user in the OpenFileDialog—and then read it in using the System.IO namespace methods. We also handle exceptions, preventing some errors related to file …

  8. OpenFileDialog Control - VB.Net

    The OpenFileDialog control prompts the user to open a file and allows the user to select a file to open. The user can check if the file exists and then open it. The OpenFileDialog control class inherits from …

  9. OpenFileDialog - Wisej.NET

    The OpenFileDialog filters files shown to the user based on a given pattern. For example, the filter C# files|*.cs|All files|*.* will show files ending with .cs by default.

  10. OpenFileDialog Control in C#

    In C#, the OpenFileDialog control is used to allow users to browse and select files from their computer. This control is commonly used in applications where users need to input files for processing or viewing.