title: Coded UI failing on the exception "Another control is blocking the control. Please make the blocked control visible ...." on a dialog window
body: <p>I can't seem to get past this exception on my coded UI project for a window dialog box. I've tried using always search and some other options. I was trying to use the option of open a window dialog button but that didn't seem to work since i did not see the open button only "OK" and a few ones that didn't pertain to what i was trying to do.</p>
  
  <p>I see one of my window is returning 5 windows, I'm trying to use the code Order Of overcation but that doesn't seem to work.</p>
  
  <p>Currently here is my latest code which is still not working and still giving me the same exception error</p>
  
  <pre><code>   WinWindow myDialogBox = new WinWindow();
          myDialogBox.FilterProperties.Add(WinWindow.PropertyNames.OrderOfInvocation, "5");
          myDialogBox.SearchConfigurations.Add(SearchConfiguration.AlwaysSearch);
          myDialogBox.SearchProperties[WinWindow.PropertyNames.ClassName] = "DirectUIHWND";
          myDialogBox.SearchProperties[WinWindow.PropertyNames.ControlId] = "0";
  
          myDialogBox.DrawHighlight();
  
  
          WinWindow MyOpbenButton = new WinWindow(myDialogBox);
       //   myDialogBox.SearchProperties.Add(WinWindow.PropertyNames.OrderOfInvocation, "0");
          MyOpbenButton.SearchConfigurations.Add(SearchConfiguration.AlwaysSearch);
          MyOpbenButton.SearchProperties[WinWindow.PropertyNames.Name] = "&amp;Open";
          MyOpbenButton.SearchProperties[WinWindow.PropertyNames.ClassName] = "Button";
          //MyOpbenButton.SearchProperties[WinWindow.PropertyNames.ControlId] = "0";
          MyOpbenButton.DrawHighlight();
  
  
          //Testing this window produces 5 window with the same name and 
          control ID.  
  
          WinWindow matchingWindows = new WinWindow(myDialogBox);
  
         matchingWindows.SearchProperties.Add("Name", "&amp;Open");
  
        //  matchingWindows.SearchProperties.Add("ControlId", "0");
         matchingWindows.SearchProperties.Add("ClassName", "Button");
  
  
  
          UITestControlCollection windowsFound = matchingWindows.FindMatchingControls();
  
  
  
  
          WinPane MyOpbenPane = new WinPane(MyOpbenButton);
          MyOpbenPane.SearchConfigurations.Add(SearchConfiguration.AlwaysSearch);
          //MyOpbenPane.SearchProperties[WinPane.PropertyNames.Name] = "Open";
          MyOpbenPane.SearchProperties[WinPane.PropertyNames.ClassName] = "Button";
          // var myDialog = sharedControls.UIWindowsInternetExploWindow.UIWindowsInternetExplo_Open_Save_Dialog_LinksPage.UIItemWindow;           
          MyOpbenPane.DrawHighlight();
          return MyOpbenPane;
  </code></pre>
  
  <p>The error message that this is producing is the following:</p>
  
  <blockquote>
    <p>Another control is blocking the control. Please make the blocked
    control visible and retry the action. Additional Details:
    \r\nTechnologyName:  'MSAA'\r\nName:  '&amp;Open'\r\nClassName: 
    'Button'\r\nControlType:  'Window'\r\n</p>
  </blockquote>