Rank: Newbie Groups: Member
Joined: 4/23/2010 Posts: 1 Points: 3
|
I have code such as this:
string url = "http://en.wikipedia.org/wiki/Earth"; System.Windows.Forms.WebBrowser wb = new System.Windows.Forms.WebBrowser(); wb.Url = new Uri(url);but after that last line wb.Url is always null.
Also, if the last line is replaced with:
wb.Navigate(url);wb.Url and wb.Document are always null. What is going on here? This is the same exact code as in documentation, but it's not working.
I also tried to use SHdocVw:
object o = null; InternetExplorer ie = new InternetExplorer(); IWebBrowser2 wb1 = (IWebBrowser2)ie; wb1.Navigate(url, ref o, ref o, ref o, ref o); HtmlDocument htmlDoc = (HtmlDocument) wb1.Document; HtmlElementCollection children = htmlDoc.All;but the wb1.Document returns an E_FAIL HRESULT.
Any help would be appreciated--I'm brand new to C#.
Thanks, Tyler
|
Rank: Newbie Groups: Member
Joined: 8/15/2010 Posts: 8 Points: 24 Location: usa
|
Swing Hybrid Irons It's important which you know this right way to swing hybrid irons. I think the golf clubs is one of the best golf clubs such as the callaway ft-iz driver for any golfer. In any other case, you may obtain your self driving that golf ball various yards farther than you intended. Position yourself correctly in front from the golf ball inside your normal golf clubs such as the taylormade 09 rescue. This difference when swinging the hybrids is that you are likely to play that ball forward. ishiner
|