I can not for the life of me figure out how to get my C# code to wait until the webpage finishes loading. I can't get the ie.documentcompleted or ie.documentcomplete even close to working. In fact even though I'm referencing the system.windows.forms assembly, I can't get VS2012 to give me documentcompleted as a dropdown option. Please help.

Thanks

```
public static string getTheBlockArray()
        {
            SHDocVw.InternetExplorer IE = new SHDocVw.InternetExplorer();
            string id = "resultsTable";
            object Empty = 0;
            object URL = "http://www.cmegroup.com/clearing/trading-practices/block-data.html#contractTypes=FUT,OPT,SPD&exchanges=XCME&assetclass=assetClassId=1,6";
            IE.Navigate2(ref URL, ref Empty, ref Empty, ref Empty, ref Empty);

            // Some code here to wait until the webpage loads

            object theRange = IE.Document.getelementbyID(id).innertext;
            string blockString = theRange.ToString();
            IE.Quit();
            return blockString;
        }

```