Hi all I need help with textbox saveing.
first the text
I'm making something like registering your self to something.
like
Name:[ Here the textbox]
Age:[ Here text box]
Register Button
If I click on the register button it should make a textfile with the information innit that works fine but I also want that the text "Name:" and "Age" commes infront of the data in the textfile what I'm now getting is only the data i want it like this in the textfile
Name: VBforums
Age: 99
This is my code I cant figure out how to do that
Thx already !!!Code:Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim sWriter As New System.IO.StreamWriter("C:\vbforums.txt", True) sWriter.WriteLine(TextBox2.Text) sWriter.WriteLine(TextBox1.Text) sWriter.Close() End Sub
~ NitroAfg![]()




Reply With Quote