How To: Use save file & stream writer w/ a list box in VB.Net

Use save file & stream writer w/ a list box in VB.Net

In this Computers & Programming video tutorial you will learn how to Use save file dialog and stream writer with a list box in VB.Net. Open up a ListBox and you will have a ListBox1 with a blank text box, Add Item and Save Item buttons on your screen. It will also have a save file button at the bottom. On the top of the panel, click Form1 and thereafter, the video shows the various parts of the code on the screen. Then click on Debugging, and add text in the blank text box and click Add Item. The text gets added to the ListBox1. Repeat the process for all text you want to add and finally click on Save Item, give it a file name and Save. That's it. For checking, you can go to your C drive, locate the file, open it and see that the text is there.

Want to master Microsoft Excel and take your work-from-home job prospects to the next level? Jump-start your career with our Premium A-to-Z Microsoft Excel Training Bundle from the new Gadget Hacks Shop and get lifetime access to more than 40 hours of Basic to Advanced instruction on functions, formula, tools, and more.

Buy Now (97% off) >

Other worthwhile deals to check out:

Join the Next Reality AR Community

Get the latest in AR — delivered straight to your inbox.

1 Comment

Share Your Thoughts