如何在vb.net应用程序中打开网页 [英] how to open web page in vb.net application

查看:162
本文介绍了如何在vb.net应用程序中打开网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我想在vb.net应用程序中打开网页,那么我可以制作



请帮我解决一下代码。



我使用此代码但是



这是一段代码:



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 :

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 !

推荐答案

最简单的方法是使用WebBrowser control [ ^ ]。

此外,如何:导航到具有WebBrowser控件的URL [ ^ ]应该可以帮助您了解如何使用此控件导航到链接。
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.


这篇关于如何在vb.net应用程序中打开网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆