O
Oriane
Hi there,
I use this very simple code:
__________________________________________________________________________
private void OnExport (object sender, EventArgs e) {
// SaveFileDialog saveFileDialog1 is a member
DialogResult result = saveFileDialog1.ShowDialog ();
if ( result == DialogResult.OK)
{
XmlTextWriter xtw = new
XmlTextWriter(saveFileDialog1.FileName, Encoding.UTF8);
xtw.WriteStartDocument(true);
xtw.WriteStartElement("File");
string role;
// ProgressBar progressBar1 is a member
progressBar1.Show();
progressBar1.Focus();
....}
and my problem is that when the treatment with the XmlTextWriter begins and
that the progress bar appears, my SaveFileDialog is not closed, but still
appears on my app.
I can't figure out why.
Best regards
I use this very simple code:
__________________________________________________________________________
private void OnExport (object sender, EventArgs e) {
// SaveFileDialog saveFileDialog1 is a member
DialogResult result = saveFileDialog1.ShowDialog ();
if ( result == DialogResult.OK)
{
XmlTextWriter xtw = new
XmlTextWriter(saveFileDialog1.FileName, Encoding.UTF8);
xtw.WriteStartDocument(true);
xtw.WriteStartElement("File");
string role;
// ProgressBar progressBar1 is a member
progressBar1.Show();
progressBar1.Focus();
....}
and my problem is that when the treatment with the XmlTextWriter begins and
that the progress bar appears, my SaveFileDialog is not closed, but still
appears on my app.
I can't figure out why.
Best regards