Skip to content

Commit dfcf8aa

Browse files
authored
Open file dialog io exception Fixes #7998 (#10198)
* Update OpenFileDialog.xml about IOException * vocabulary fix * PR fix as recomended
1 parent e53f388 commit dfcf8aa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

xml/System.Windows.Forms/OpenFileDialog.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@
4747
On a right-to-left operating system, setting the containing form's <xref:System.Windows.Forms.Control.RightToLeft> property to <xref:System.Windows.Forms.RightToLeft.Yes?displayProperty=nameWithType> localizes the dialog's **File Name**, **Open**, and **Cancel** buttons. If the property is not set to <xref:System.Windows.Forms.RightToLeft.Yes?displayProperty=nameWithType>, English text is used instead.
4848
4949
If you want to give the user the ability to select a folder instead of a file, use <xref:System.Windows.Forms.FolderBrowserDialog> instead.
50-
51-
52-
50+
5351
## Examples
5452
The following code example creates an <xref:System.Windows.Forms.OpenFileDialog>, sets several properties to define the file extension filter and dialog behavior, and displays the dialog box using the <xref:System.Windows.Forms.CommonDialog.ShowDialog%2A?displayProperty=nameWithType> method. The example requires a form with a <xref:System.Windows.Forms.Button> placed on it and a reference to the <xref:System.IO> namespace added to it.
5553
@@ -235,6 +233,7 @@ On a right-to-left operating system, setting the containing form's <xref:System.
235233
]]></format>
236234
</remarks>
237235
<exception cref="T:System.ArgumentNullException">The file name is <see langword="null" />.</exception>
236+
<exception cref="T:System.IO.IOException">An I/O error occurred while opening the file.</exception>
238237
<altmember cref="T:System.IO.Stream" />
239238
<altmember cref="P:System.Windows.Forms.OpenFileDialog.CheckFileExists" />
240239
<altmember cref="P:System.Windows.Forms.OpenFileDialog.ReadOnlyChecked" />

0 commit comments

Comments
 (0)