Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
if i want open web page in vb.net application so can i make

Please help me to solve the code.

I have use this code but

Here is a code :

VB
Private Sub NavigateWebURL(ByVal URL As String, Optional browser As String = "default")

    If Not (browser = "default") Then
        Try
            '// try set browser if there was an error (browser not installed)
            Process.Start(browser, URL)
        Catch ex As Exception
            '// use default browser
            Process.Start(URL)
        End Try

    Else
        '// use default browser
        Process.Start(URL)

    End If

End Sub


Please help me !
Posted
Updated 6-Apr-14 9:08am
v2
Comments
CHill60 5-Apr-14 10:37am    
"I have use this code but" ... but what? What is the problem?
OriginalGriff 5-Apr-14 10:38am    
Please do not repost the same question repeatedly.
All you will do is annoy people. I have deleted the reposts.
manisha.patel.wow 5-Apr-14 10:55am    
actually some times ago i had seen your code and that was awesome i felt but when i had used that but not able to run program, that is giving me no error.

not able to open browser.
Member 10728035 6-Apr-14 6:59am    
sorry to ask you but what you wanna do that you wanna a personal web browser app?

1 solution

The easiest way to do this is by using the WebBrowser control[^].
In addition, How to: Navigate to a URL with the WebBrowser Control[^] should help you understand how you can use this control to navigate to a link.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900