My application needs to save a JPEG image file with a file name provided in a TextBox. I don’t want to use SaveFileDialog because I don’t want the user to see the dialog or be able to change the location of the saved image.
How can I set the name of the saved file from a TextBox?
private void button1_Click(object sender, EventArgs e)
{
if (textBox4.Text.Length >= 1)
bitmap.Save(@"C:\Test.jpg");
}
What about:
EDIT: