How to launch web browser in windows application

onebite2
onebite2 used Ask the Experts™
on
I have a text box with url field and  a button....when the text box has url  value and when the user clicks on the button it should launch a webbrowser in windows application...how to do this part of code???
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Éric MoreauSenior .Net Consultant
Top Expert 2016

Commented:
Commented:
Try this:

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        System.Diagnostics.Process.Start("http://www.cnn.com")

    End Sub

This will open the specified url, using the default browser. Make sure that the http:// part exists in the textbox.text.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial