I want my users to be able to click a button to open my company's webpage in the default browser when clicked. How would I do this?
I'm using VB.net so all .net examples are acceptable.
I want my users to be able to click a button to open my company's webpage in the default browser when clicked. How would I do this?
I'm using VB.net so all .net examples are acceptable.
Dim URL As String
Dim browser As String = TextBox1.Text
URL = TextBox1.Text
Try
If Not (browser = TextBox1.Text) Then
Try
Process.Start(browser, URL)
Catch ex As Exception
Process.Start(URL)
End Try
Else
Process.Start(URL)
End If
Catch ex As Exception
MsgBox("There's something wrong!")
End Try