Hi,
sorry - is writing to the file not what you wanted, i.e.
Code:
Dim sw As StreamWriter
        sw = File.CreateText(DataPath & "myfile.txt")
        sw.WriteLine(textbox1.Text)
        sw.Flush()
        sw.Close()
I don't understand where 'My.Application' comes into it?

Pete