如何链接网址?

mtoad 2003-05-20 09:45:37
通过一个按钮链接到一个公司的网址?如何用代码实现?请高人指点!!谢谢
...全文
381 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
spark_li 2003-05-21
  • 打赏
  • 举报
回复
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hWnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

在程序中

Intranet:
ShellExecute Me.hWnd, "open", "http://Intranet主机/目录", "", "", 5

比如
ShellExecute Me.hWnd, "open", "http://www.xyz.com", "", "", 5
viber 2003-05-21
  • 打赏
  • 举报
回复
用api函数ShellExecute的第三个参数`!~
楼上的那种方法
boywang 2003-05-20
  • 打赏
  • 举报
回复
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

Dim ret&
ret& = ShellExecute(Me.hwnd, "Open", "http://ctstudio.163.net", "", App.Path, 1)
mtoad 2003-05-20
  • 打赏
  • 举报
回复
to yeenRadium(百无鱼子)

我试了一下,不行呀
yeenRadium 2003-05-20
  • 打赏
  • 举报
回复
很简单的一个

Private Sub Mhelp_zc_Click()
'链接163网站 Mhelp_zc_ 为菜单名 ~~也可以是你的 按钮之类~
Shell ("Start http://www.163.com")

End Sub

7,785

社区成员

发帖
与我相关
我的任务
社区描述
VB 基础类
社区管理员
  • VB基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧