Aprire pagina web nel browser predefinito con VB.NET
La seguente funzione in linguaggio VB.NET permette di aprire il browser predefinito e visualizzare la pagina web identificata dal parametro strIndirizzo.
Public Sub VisitaPagina(ByVal strIndirizzo As String) Try System.Diagnostics.Process.Start(strIndirizzo.Trim) Catch ex As Exception MsgBox(ex.Message, MsgBoxStyle.Critical, "Errore") End Try End Sub |