When I click a button on a Windows Forms form, I would like to open a Notepad window containing the text from a TextBox control on the form.
How can I do that?
Try this out:
System.IO.File.WriteAllText(@"C:\test.txt", textBox.Text); System.Diagnostics.Process.Start(@"C:\test.txt");