如何在一个FORM中显示一个网址而且点击后可以通过IE打开 谢了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 假设你的网址在text1里面:Shell "rundll32.exe url.dll,FileProtocolHandler " & Text1.Text 用lebal控件显视,然后把字体设成带下划线,颜色设为高亮蓝...单击以后变为红色。嘿嘿,以假乱真... 用webbrower控件工程——部件——Microsoft Internet controlsPrivate Sub Command1_Click() WebBrowser1.Navigate "www.xinhuanet.com"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'hwnd ----------- Long,指定一个窗口的句柄,有时候,windows程序有必要在创建自己的主窗口前显示一个消息框'lpOperation ---- String,指定字串“open”来打开lpFlie文档,或指定“Print”来打印它'lpFile --------- String,想用关联程序打印或打开一个程序名或文件名'lpParameters --- String,如lpszFlie是可执行文件,则这个字串包含传递给执行程序的参数'lpDirectory ---- String,想使用的完整路径'nShowCmd ------- Long,定义了如何显示启动程序的常数值。 例如:ShellExecute Form1.hwnd, "open", "http://zhuanqian.ik8.com.com", vbNullString, vbNullString, &H0 Private Sub Label1_Click() ShellExecute Form1.hwnd, "open", "http://zhuanqian.ik8.com.com", vbNullString, vbNullString, &H0End SubPrivate Sub Label2_Click() ShellExecute Form1.hwnd, "Open", "mailto:[email protected]", "", App.Path, 1End Sub TextBox中使用NewLine 用API怎么改变ListBox项目背景色? loadlibrary api 函数问题 CRAXDDRT.Application 在 vs2003 中 为什么不能用? 紧急问题,数据库连接错误 dapha请来取分1 请问各位大哥在form加载的时候我把数据库的内容逐一加载上combo里面怎么说我with块未付值出错的 请问,点鼠标右健弹出菜单怎么做,谢谢 怎样改变MSChart控件中显示的点的大小和类型 救救我吧!!! vb与SQL连接问题 excel
Shell "rundll32.exe url.dll,FileProtocolHandler " & Text1.Text
工程——部件——Microsoft Internet controlsPrivate Sub Command1_Click()
WebBrowser1.Navigate "www.xinhuanet.com"
End Sub
'hwnd ----------- Long,指定一个窗口的句柄,有时候,windows程序有必要在创建自己的主窗口前显示一个消息框
'lpOperation ---- String,指定字串“open”来打开lpFlie文档,或指定“Print”来打印它
'lpFile --------- String,想用关联程序打印或打开一个程序名或文件名
'lpParameters --- String,如lpszFlie是可执行文件,则这个字串包含传递给执行程序的参数
'lpDirectory ---- String,想使用的完整路径
'nShowCmd ------- Long,定义了如何显示启动程序的常数值。
ShellExecute Form1.hwnd, "open", "http://zhuanqian.ik8.com.com", vbNullString, vbNullString, &H0
ShellExecute Form1.hwnd, "open", "http://zhuanqian.ik8.com.com", vbNullString, vbNullString, &H0
End SubPrivate Sub Label2_Click()
ShellExecute Form1.hwnd, "Open", "mailto:[email protected]", "", App.Path, 1
End Sub