I want my SaveFileDialog to put the string from a text box as the name to save the file as. For example: the user enters "My File Name" in a text box. I want "My File Name" to show up in the SaveFileDialog Box as the file name to save as.
Here is my code for the button click:
vb/
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
SaveFileDialog1.ShowDialog()
RichTextBox1.SaveFile(SaveFileDialog1.FileName, RichTextBoxStreamType.PlainText)
End Sub
/vb
Thanks for any help.
Here is my code for the button click:
vb/
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
SaveFileDialog1.ShowDialog()
RichTextBox1.SaveFile(SaveFileDialog1.FileName, RichTextBoxStreamType.PlainText)
End Sub
/vb
Thanks for any help.