saveFileDialog question

Z

Zach

What is wrong with ****
What should it be?
Thank you.

private void button3_Click(object sender, System.EventArgs e)
{
{
if(saveFileDialog1.ShowDialog() == DialogResult.OK)
{
using (StreamWriter sw = new
StreamWriter(saveFileDialog1.FileName****))
{
sw.WriteLine(textBox1.Text);
}
}
}
}
 
Z

Zach

I see nothing is wrong.
I had a wrong setting in the properties box.
Thanks anyway.

I have two other questions:
(1.) How do I change the background color in a saveFileDialog?
(2.) How do I change the language shown in the dialog boxes?
I mean things like "My Computer" etc.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top