VisualBasic实现在程序中开启网页
2006-02-27 21:10:15 来源:WEB开发网核心提示:在声明区中声明如下(在.bas档中用Public,在Form中用PRivate)PrivateDeclareFunctionShellExecuteLib"shell32.dll"Alias"ShellExecuteA"(ByValhWndAsLong,ByVallpOperat
在声明区中声明如下(在.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的功能.->
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的功能.->
Tags:VisualBasic 实现 程序
编辑录入:爽爽 [复制链接] [打 印][]
更多精彩
赞助商链接