title: How to use Progress bar during loading an xml File
body: <p>I want to show progress bar during loading a Remote xml file. I am using Windows Application Form in Visual C# 2008 Express Edition. </p>
  
  <pre><code>private void button1_Click(object sender, EventArgs e)
      {
          string text =  textBox1.Text;
          string url = "http://api.bing.net/xml.aspx?AppId=XXX&amp;Query=" + text + "&amp;Sources=Translation&amp;Version=2.2&amp;Market=en-us&amp;Translation.SourceLanguage=en&amp;Translation.TargetLanguage=De";
  
          XmlDocument xml = new XmlDocument();
          xml.Load(url);
  
          XmlNodeList node = xml.GetElementsByTagName("tra:TranslatedTerm");
  
          for (int x = 0; x &lt; node.Count; x++ )
          {
              textBox2.Text = node[x].InnerText;
              progressbar1.Value = x;
          }
      }
  </code></pre>
  
  <p>Above code is not working for showing progressbar loading.. Please Suggest me some code. Thanks in advance</p>