webBrowser.Url == null ?
-
Could You please provide me with solution I have a panel and only one control on it - WebBrowser control. When I try to access to webBrowser.name is OK, but webBrowser.Url == null
WebBrowser webBrowser = webBrowserTabControl.SelectedPanel.Controls[0] as WebBrowser; webBrowsersCollection.SelectedWebBrowser = webBrowser.Name; currentURL = **webBrowser.Url**.ToString();
Thanks in advance -
Could You please provide me with solution I have a panel and only one control on it - WebBrowser control. When I try to access to webBrowser.name is OK, but webBrowser.Url == null
WebBrowser webBrowser = webBrowserTabControl.SelectedPanel.Controls[0] as WebBrowser; webBrowsersCollection.SelectedWebBrowser = webBrowser.Name; currentURL = **webBrowser.Url**.ToString();
Thanks in advance -
Could You please provide me with solution I have a panel and only one control on it - WebBrowser control. When I try to access to webBrowser.name is OK, but webBrowser.Url == null
WebBrowser webBrowser = webBrowserTabControl.SelectedPanel.Controls[0] as WebBrowser; webBrowsersCollection.SelectedWebBrowser = webBrowser.Name; currentURL = **webBrowser.Url**.ToString();
Thanks in advanceprobably because it has no url set?
fafafa, ringakta icke sådant som bringa ack så naggande högönsklig välmåga å baronens ära.
-
Have you browsed to a URL? If not, the Url property is going to be null. You should check this before calling the ToString() method on the Uri object instance.
Paul Marfleet
Thank for all I created additional dictionary to collect URL, becouse it seems to me that WebBrowswer has URL property resolved after "web paged displayed", But I can't create additional thread to wait while it will be finised -- modified at 8:29 Thursday 1st November, 2007