Page Rank

Subscribe

Categories

Recent posts

Alexa Rank

Working with OpenFileDialog Component in C#


  • This topic explains about the Working with OpenFileDialog Component in C#.

Working with OpenFileDialog Component in C#

  • This OpenFiledialog presents users with a way to browse the folders of their computer or any computer on the network and allows them to open files.
  • The dialog box returns the path and name of the file the user selected in the dialog box.
  • First you have to add two controls from the ToolBox to the visual studio form that we opened.

1)      Button Control

2)      OpenFileDialog Control

Add below code inside the Button Click Event for working with OpenFileDialog component in C#

  • If you want to filter the file to open through the OpenFileDialog control in C#, do the following Code. (code shows only the files that we want to select)

Complete CodeWorking with OpenFileDialog Component in C#

Working with OpenFileDialog Component in C#


VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">