Public 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 Call ShellExecute(Me.hWnd, "open", "www.sina.com.cn", "", "", 1)
Private Sub Command1_Click() Shell "Explorer http://www.sina.com.cn" End Sub
Call ShellExecute(Me.hWnd, "open", "www.sina.com.cn", "", "", 1)
Shell "Explorer http://www.sina.com.cn"
End Sub
to:baoaya(点头)
我在win2000pro下打不开网页,只能打开本地的
谁来帮帮忙
功能实现了,但是ie窗口没有actived
Shell "Explorer http://www.sina.com.cn", vbMaximizedFocus
End Sub
ie没有actived啊,焦点还是在vb程序上
为什么
ShellExecute(Me.hWnd, "open", "www.163.com", vbnullstring, vbnullstring, 1)
不行啊(加了http://也不行啊)