开启网站 [英] Open web site

查看:66
本文介绍了开启网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过单击按钮,我可以使用什么代码打开www.acts.co.za?

What code can I use to open a www.acts.co.za from a button click ?

推荐答案


试试这个

Help.ShowHelp(Me,"http://www.acts.co.za")

这将在用户默认的浏览器中打开网页.如果浏览器已打开,它将仅打开一个新的标签页.

希望这会有所帮助.

快乐编码
Hi
Try This

Help.ShowHelp(Me,"http://www.acts.co.za")

That will open up the web page in the users default browser. If the browser is open it will just open a new tab page.

Hope this helps.

Happy Coding


如果您使用的是Windows应用程序,
您需要在窗体上的WebBrowser控件.然后在按钮上单击,编写以下代码:
If you are using windows application,
You need a WebBrowser Control on the form. Then on the button click, write this code:
Private Sub button1_Click(ByVal sender As Object, ByVal e As EventArgs)
    webBrowser1.Url = New Uri("http://www.acts.co.za")
End Sub



如果是网络应用程序,
做这样的事情:



If it''s an web application,
Do something like this:

Private Sub button1_Click(ByVal sender As Object, ByVal e As EventArgs)
    Response.Redirect("http://www.acts.co.za")
End Sub



希望对您有所帮助!



Hope this helps!


感谢您的快速回复,但是我该如何声明帮助呢?
Thanks for the quick reply, but how do I declare help ?


这篇关于开启网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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