title: Progressbar in windows application
body: <p>I am importing xml document to econnect method(Microsoft Dynamic GP). it is taking few minutes(10 M) to import the file. so i need to show progress bar while doing import.</p>
  
  <p>In form load event I am submitting xml file.  </p>
  
  <p>But problem is form is showing after submit the xml file. I need to show the Progressbar form (70%) before sumbiting xml file. And  submiting xml file i have to show progress bar full (100%).</p>
  
  <p>Let me know how can i show..... </p>
  
  <pre><code>              Form BarFormobj = new Form();
                  BarFormobj.Width = 250;
                  BarFormobj.Height = 150;
                  BarFormobj.StartPosition = FormStartPosition.Manual;
                  BarFormobj.Location = new Point(450, 200);
                  BarFormobj.Text = "Invoice Date";
  
                  BarFormobj.Load += new EventHandler(BarFormobj_Load);                    
                  pBar.Location = new System.Drawing.Point(20, 20);
                  pBar.Name = "progressBar1";
                  pBar.Width = 200;
                  pBar.Height = 30;
  
                  pBar.Minimum = 0;
                  pBar.Maximum = 100;
                  pBar.Value = 70;   
                  BarFormobj.Controls.Add(pBar);
  
                  BarFormobj.ShowDialog();
  
                      pBar.Value = 100;
                      BarFormobj.Controls.Add(pBar);
  
                MessageBox.Show("Invoices have been successfully created");
  </code></pre>
  
  <p>static void BarFormobj_Load(object sender, EventArgs e)</p>
  
  <pre><code>    {          
  
        eConcall.CreateTransactionEntity(connStr, xmlDoc);  // here i am submitting xml documnet to Econnect. 
      }
  </code></pre>