首页 > 学院 > 开发设计 > 正文

VisualBasic实现在程序中开启网页

2019-11-18 17:31:31
字体:
来源:转载
供稿:网友
在声明区中声明如下(在.bas档中用Public,在Form中用PRivate)

PrivateDeclareFunctionShellExecuteLib"shell32.dll"Alias"ShellExecuteA"(ByValhWndAsLong,ByVallpOperationAsString,ByVallpFileAsString,ByVallpParametersAsString,ByVallpDirectoryAsString,ByValnShowCmdAsLong)AsLong

在程序中

Intranet:
ShellExecuteMe.hWnd,"open","http://Intranet主机/目录","","",5
Internet:
ShellExecuteMe.hWnd,"open","http://www.ruentex.com.tw","","",5

很简单吧!!!就算您的机器不能连上Internet,您也可以马上感受一下Intranet的功能.->


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表