' This subroutine saves the content of the Received TextBox
Private Sub SaveText(ByVal sender As System.Object, ByVal e As System.EventArgs)
Dim SaveFileDialog1 As New SaveFileDialog()
SaveFileDialog1.Filter = "Text Files (*.txt)|*.txt"
SaveFileDialog1.Title = "Save Received As"
If SaveFileDialog1.ShowDialog() = System.Windows.Forms.DialogResult.OK _
And SaveFileDialog1.FileName.Length > 0 Then
My.Computer.FileSystem.WriteAllText(SaveFileDialog1.FileName, Temperature.Text, False) ' Overwrite file
End If
End Sub
--------------------------------------
This Subroutine saves the content of the textbox as it is mentioned. May i know, how i can find the contents? i don't think there is a file already built & named in my computer(H.D.D) as temperature.txt.
Likewise, during running the program never ask me to save any file or something like this. Please let me know your comment about this as well.