Coding Forums

Web development and Application development forums. Seek solution from Experts at Coding-Forum. An Ad-Revenue sharing forum.
Welcome Guest Search | Active Topics | Members | Log In | Register

Coding Forum » Application Development Forums » C Sharp ( C# ) Programming » using WebBrowser control
using WebBrowser control Options
tyler_kid_a
Posted: Friday, April 23, 2010 6:22:40 PM
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
Sponsor
Posted: Friday, April 23, 2010 6:22:40 PM
Matthe55
Posted: Friday, August 20, 2010 10:21:28 PM
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
Users browsing this topic
Guest

Coding Forum » Application Development Forums » C Sharp ( C# ) Programming » using WebBrowser control

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

This page was generated in 0.028 seconds.

Powered by YAF. Theme is derived from Dating forums.
Copyright 2008 Coding Forum