answersLogoWhite

0


Best Answer

Go to your button and double click it to go to the code then add this

Dim NameOfFile as String

NameOfFile = InputBox("Enter the Name of The File", "")

Dim objWriter As New System.IO.StreamWriter("C:/" & NameOfFile.ToString & ".txt")

Msgbox("COMPLEATE")

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you make a save button for a txt file in visual basic?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How can you make an URL button at visual basic 6?

http://www.swapitshop.com/friend_jump?user_id=1759213&creative_id=17


What program is used to make a .mdb file in visual basic. pls help im just a begginer?

ms access


How do you make a clear text button on Visual Basic?

You can make a clear text button just by dragging the textbox from toolbox window and drop on form design window,then you can modify the text button by either enlarging it or decreasing the size


How do you run the net programs?

To debug well visual basic is running simple click debug.. To make a .exe file to use later when visual basic is not running go to Build >> Build Solution Now in your debug folder for your project you will have a .exe ("Application") file to run at any time...


How do I make Visual Basic edit a .bat file?

.bat files are just text files. The easiest way to edit them is with a simple editor like Textpad. If Visual Basic includes a simple text editing function that will work also.


Why was Visual Basic invented?

I guess Visual Basic was invented for people to make their own programs and also to have an interest in programming or computer science.


How do you make back buttons in Visual basic 2008?

If you are using it for a web browser like internet explorer, add a back button, then double click it and enter: webbrowser1.goback.


How to make grading system in visual basic 6.0?

first you must have a visual basic if not how can make this?? jsut simply follow this code: end that's it.. thank you/..:) i hope i help..


Make a os with visual basic 2008?

No but you can in C or C++


Can you make a cp trainer without visual basic?

yes :)


How do you make a webcam recording software with Visual Basic?

yes


When command button is pressed in visual basic then how to make a form appear?

jst type this in the coding of command button me.hide form2.show