New course! Every coder should learn Generative AI!
Try a free lesson- 1
Hi
Why would you use Visual Basic? C# is way more modern...anyway, here's how:
First import System.IO (using System.IO;)
then to write textbox value in the file you can do:
File.WriteAllText("*your file path *", TextBox1.Text );
the path must have "\\" instead of "\", example: "Desktop\\My files\\project"