Shell "Explorer.exe http://www.sina.com.cn",vbMaximizedFocus
解决方案 »
- vb对MediaPlayer控件的控制
- 问个小问题?
- 支票打印程序,特急
- 2个问题(DLL和存储过程),请高手解答?
- SYSBASE数据库连接问题请各位朋友帮忙谢谢
- 我要查找日期字段小于等于DATA1且大于等于DATA2的记录但是提示代码出错为什么
- 我是一个VB初学者,我在编程的时候遇到一些问题,请大家帮帮我.谢谢!
- 30位神奇字符串加密与解密
- 利用VB6。0怎样读写注册表
- 我想用VB来实面一个虚拟目录的创建,来执行ASP文件!请问应该如何来实现。那位好心人有这方面的资料,请留下你的大名,分数一定奉上!
- 如何定MSFlexGrid中每一行的宽度
- 想用textbox实现类似excel中输入资料时自动带出以前输入过的旧资料
Shell "explorer.exe " & mnu1.caption, vbMaximizedFocus
Shell ("start http://www.sina.com.cn")
End Sub
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
Private Sub Command1_Click()
Dim Ret As Long
Ret = ShellExecute(Me.hwnd, "open", "http://www.csdn.net", "", App.Path, 1)
End Sub
Call Shell("start http://www.sina.com.cn")
不好使。
我记得在Win98下好象好使。(给你提个醒:))
(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'''菜单名为mnuHttp
Private Sub mnuHttp_Click()
Call ShellExecute(Form1.hwnd, "open", "http://www.sohu.com", vbNullString, vbNullString, &H0)End Sub在win2k,vb6下通过
(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 LongPrivate Sub Label1_Click()
ShellExecute hwnd, "open", "http://www.sina.com.cn", "",_ vbNullString, 5
End Sub
Win2000测试通过
如:
private sub menu_click()
dim ie as internet explore
set ie=new internet explore ...
ie.navaigate url...
end subOK!
http://www.csdn.net/Develop/Read_Article.asp?Id=12969