怎么在VB6.0里用IE打开一个网页?

另类唐伯虎 2003-08-18 03:11:19
我忘了怎么写代码?
请各位给我说一下吧!
...全文
67 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
dyx 2003-08-18
  • 打赏
  • 举报
回复
Shell "rundll32.exe url.dll,FileProtocolHandler http://www.tsfigure.com.cn"
superxmz 2003-08-18
  • 打赏
  • 举报
回复
Dim goweb As String
goweb = "explorer.exe " & "url" '在explorer.exe后面一定要加一两个空格
Shell goweb, vbMaximizedFocus
lihonggen0 2003-08-18
  • 打赏
  • 举报
回复

第二种方法:

Shell "explorer http://www.csdn.net"
lihonggen0 2003-08-18
  • 打赏
  • 举报
回复

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


ShellExecute Me.hWnd, "open", "http://www.csdn.net", vbNullString, vbNullString, SW_SHOW
windcandle 2003-08-18
  • 打赏
  • 举报
回复
同意楼上的,没问题。
lisong770818 2003-08-18
  • 打赏
  • 举报
回复
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

ret = ShellExecute(Me.hwnd, "open", Label2.Caption, "", strPath, 1)

7,759

社区成员

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

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