title: Why is Process.MainWindowTitle always empty for all but one window?
body: <p>When accessing Process.MainWindowTitle as follows...</p>
  
  <pre><code>Process[] processes = Process.GetProcessesByName( "iexplore" );
  </code></pre>
  
  <p>...and then loop over the resulting array, I always end up with the <code>MainWindowTitle</code> being empty for all but one item in the array. In my case I've got two Internet Explorer windows open, one with a single tab and one with two tabs in it. </p>
  
  <p>Running my code I always get the MainWindowTitle for the window and tab that I had last active - all the others remain empty. The strange thing is that the process ID in which the MainWindowTitle is filled is always the same - if I activate the other IE window or tab before running my code, the process ID is always the same:</p>
  
  <pre><code>  if ( !processes.Any() )
    {
      MessageBox.Show( "TODO - No matching process found" );
      return;
    }
  
    if ( processes.Count() &gt; 1 )
    {
      foreach ( Process currentProcess in processes )
      {
        // More than one matching process found
        checkedListBox1.Items.Add( currentProcess.Id + " - " + currentProcess.MainWindowTitle + " - " + currentProcess.ProcessName );
      }
  
      return;
    }
  </code></pre>
  
  <p>Output could therefore be for the first run like:</p>
  
  <ul>
  <li>4824 - - iexplore</li>
  <li>3208 - - iexplore</li>
  <li><strong>4864 - Google - Windows Internet Explorer - iexplore</strong></li>
  </ul>
  
  <p>Next run (with the other IE window selected beforehand):</p>
  
  <ul>
  <li>4824 - - iexplore</li>
  <li>3208 - - iexplore</li>
  <li><strong>4864 - id Software - Windows Internet Explorer - iexplore</strong></li>
  </ul>
  
  <p>I've read about <a href="https://stackoverflow.com/questions/210504/enumerate-windows-like-alt-tab-does?answertab=votes#tab-top">this post</a>, but I didn't get any further with my problem (and it seems to go into a somewhat different direction anyway).</p>
  
  <p>Why do I always only get one non-empty MainWindowTitle?</p>