39-SaveFileDialog

0
450

This Visual Basic Tutorial is all about SaveFileDialog.
The SaveFileDialog component prompt the users to browse the file system and select a specific file to be saved. The dialog box returns the path and name of the file that the user has selected. On the other hand, you need to write the code in order to write the files to the disk.

 

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 richbox, a button and the savefiledialogin the form. Do the form just like this.
    sfileDF1
  • Double click a button and do this following code.
 

Output:
sfileDF2

 

A reader 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.