hi all!! here's the deal:
i have this code
Sub SaveToTextFile() Handles Button1.Click
Dim name1 As String = TextBox3.Text
Dim st1 As String = TextBox1.Text
Dim st2 As String = TextBox2.Text
Dim br1 As String = "{"
Dim br2 As String = "}"
Dim desck As String = br1 & st1 & br2 & vbNewLine & vbNewLine & st2
Dim path1 As String = "F:\My Office\foto Database\Descriptions\"
Dim extension As String = ".txt"
Dim path As String = path1 & name1 & extension
Dim objWriter As New System.IO.StreamWriter(path)
objWriter.Write(desck)
objWriter.Close()
End Sub
now all i want to do is make sure that the textboxes wont be empty when i press the button. i tried using loops but it will loop infinitely and won't let me write something to the textbox.