Skip to Content
.NET Windows Forms in a Nutshell
book

.NET Windows Forms in a Nutshell

by Ian Griffiths, Matthew Adams
March 2003
Intermediate to advanced
896 pages
32h 35m
English
O'Reilly Media, Inc.
Content preview from .NET Windows Forms in a Nutshell

Name

OpenFileDialog

Synopsis

This FileDialog class provides a means for a user to select a file to open. In addition to the base functionality, it adds an OpenFile() method, which will open a file Stream for the first selected file.


public sealed class OpenFileDialog : FileDialog {

// Public Constructors

   public OpenFileDialog();

// Public Instance Properties

   public override bool CheckFileExists{set; get; }

// overrides FileDialog

   public bool Multiselect{set; get; }

   public bool ReadOnlyChecked{set; get; }

   public bool ShowReadOnly{set; get; }

// Public Instance Methods

   public Stream OpenFile();

   public override void Reset();  // overrides FileDialog

}

Hierarchy

System.Object System.MarshalByRefObject System.ComponentModel.Component(System.ComponentModel.IComponen, System.IDisposable) CommonDialog FileDialog OpenFileDialog

Passed To

System.Windows.Forms.Design.FileNameEditor.InitializeDialog()

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Windows Forms 2.0 Programming

Windows Forms 2.0 Programming

Chris Sells, Michael Weinhardt
Pro C# 7: With .NET and .NET Core

Pro C# 7: With .NET and .NET Core

Andrew Troelsen, Philip Japikse

Publisher Resources

ISBN: 0596003382Supplemental ContentCatalog PageErrata