|
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 Const SW_SHOWNORMAL = 1
Private Sub Command0_Click()
Dim strFile As String
strFile = "http://www.office-cn.net/bbs/index.asp"
Call ShellExecute(Me.hwnd, "open", strFile, vbNullString, vbNullString, SW_SHOWNORMAL)
End Sub
|
|