Opening a web page in the default web browser.
-
how do you open a web page in the default web browser using vb.net http://ixpress.sourceforge.net/feedmonster http://simpleread.blogspot.com
-
how do you open a web page in the default web browser using vb.net http://ixpress.sourceforge.net/feedmonster http://simpleread.blogspot.com
-
System.Diagnostics.Process.Start(WebURL) ... where WebURL is a string containing the URL of a web site "Evidently your parents slapped together version 1.0 of you and hoped no one would notice the bugs." ... Dogbert (tech support)
If you want to test if the URL is reachable (e.g. an Internet connection is available and the URL is valid), pass the URL string to this function. Private Function WebSiteIsAvailable(ByVal linkText As String) As Boolean Dim URL_Object As New System.Uri(linkText) Dim URL_WebRequest As System.Net.WebRequest Dim URL_WebResponse As System.Net.WebResponse Dim Response_Result As Boolean ' Attempt to get a response from the URL Try URL_WebRequest = System.Net.WebRequest.Create(URL_Object) URL_WebResponse = URL_WebRequest.GetResponse Response_Result = True Catch Any_Error As Exception Response_Result = False End Try URL_WebResponse = Nothing URL_WebRequest = Nothing URL_Object = Nothing ' Return the result Return Response_Result End Function "Evidently your parents slapped together version 1.0 of you and hoped no one would notice the bugs." ... Dogbert (tech support)
-
If you want to test if the URL is reachable (e.g. an Internet connection is available and the URL is valid), pass the URL string to this function. Private Function WebSiteIsAvailable(ByVal linkText As String) As Boolean Dim URL_Object As New System.Uri(linkText) Dim URL_WebRequest As System.Net.WebRequest Dim URL_WebResponse As System.Net.WebResponse Dim Response_Result As Boolean ' Attempt to get a response from the URL Try URL_WebRequest = System.Net.WebRequest.Create(URL_Object) URL_WebResponse = URL_WebRequest.GetResponse Response_Result = True Catch Any_Error As Exception Response_Result = False End Try URL_WebResponse = Nothing URL_WebRequest = Nothing URL_Object = Nothing ' Return the result Return Response_Result End Function "Evidently your parents slapped together version 1.0 of you and hoped no one would notice the bugs." ... Dogbert (tech support)
thanks i think this will do it