38-OpenFileDialog

0
402

This Visual Basic Tutorial is all about OpenFileDialog.
The OpenFileDialog control allows the user to open a file and select any file to open. The user can also check if the file does exist and open it. The OpenFileDialog control class that derives from the abstract class FileDialog.

 

Example:

  • Open the Visual Basic, select “File” on the menu, hit new and create a new project.
    01_helloworld
  • The New Project dialog will appear.
    create2s
    Select “windows” in the project types, hit the “windows form application” in the templates and hit “ok“.
  • Add a richtextbox, a button and the openfiledialog in the form. Do the form just like this.
    38openfile
  • Double click the button and do this following code.
 

Output:

38-openfile1f

 

 

Readers might read also:

 

 

 

Facebook Comments

LEAVE A REPLY

Please enter your comment!
Please enter your name here

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