openFileDialog1.ShowDialog() == DialogResult.OK – Programming, Pseudocode Example, C# Programming Example
C# File Windows Form

openFileDialog1.ShowDialog() == DialogResult.OK

For opening FileDialog You must need to store the return value of ShowDialog() in a variable and then compare this to DialogResult.OK.

I wrote it as a note to myself for future use.

C# Code:

Alternative:

Open Image File:

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.