title: LoadCompleted event in DoWork event
body: <p>First of all, I post my code:</p>
  
  <pre><code>public partial class MainWindow : Window
  {
      private readonly BackgroundWorker worker = new BackgroundWorker();
      private List&lt;string&gt; list = new List&lt;string&gt;();
      private List&lt;string&gt; arrOfAdresses = new List&lt;string&gt;();
  
      public MainWindow()
      {
          InitializeComponent();
          worker.DoWork += worker_DoWork;
          worker.RunWorkerCompleted += worker_RunWorkerCompleted;
          list.Add("http://www.yahoo.com");
          list.Add("http://www.google.com");
      }
  
      private void worker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
      {
          MessageBox.Show("All is done");
      }
  
      private void worker_DoWork(object sender, DoWorkEventArgs e)
      {
          foreach (string s in list)
          {
              WebBrowser bro = new WebBrowser();
              bro.Width = bro.Height = 1;
              grid.Children.Add(bro);
              bro.Navigate(s);
              bro.LoadCompleted += OnLoadCompleted;
          }
      }
  
      private void button_Click(object sender, RoutedEventArgs e)
      {
          worker.RunWorkerAsync();
      }
  
      private void OnLoadCompleted(object sender, NavigationEventArgs e)
      {
          WebBrowser bro = sender as WebBrowser;
          this.arrOfAdresses.Add(bro.Source.ToString()+"Added text");
          MessageBox.Show("xxx"); //MessageBox is ignored
      }
  
      private void shower_Click(object sender, RoutedEventArgs e)
      {
          arrOfAdresses.Reverse();
          foreach (string s in arrOfAdresses)
              MessageBox.Show(s);
      }
  }
  </code></pre>
  
  <p><code>button_click</code> event should store adresses into <code>arrOfAdresse</code>, which will be little bit modified. </p>
  
  <p>Next, <code>shower_Click</code> should show all modified values which are in <code>arrOfAdresses</code>. When I want to show values, which I shoud have in <code>arrOfAdresses</code>, it returns me nothing. I think, problem is in <code>LoadCompleted</code> event, because when I put the MessageBox the program ignore it. Is there some way I can show values, when <code>shower_Click</code> is raised and is there some way I can fix it? Thank you for replies.</p>