private void btnSubmit_Click(object sender, EventArgs e) { browser.Navigate("https://www.google.com/"); SaveFileDialog sfd = new SaveFileDialog(); sfd.Filter = " TEXT File |*.txt"; if (sfd.ShowDialog() == DialogResult.OK) { browser.SaveDocument(sfd.FileName); } }
if (sfd.ShowDialog() == DialogResult.OK)
// create reader & open file in C drive or your location TextWriter tr = new StreamWriter(@"C:\" + "example.txt"); // read a line of text tr.WriteLine(richTextBox1.Text); // close the stream tr.Close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)