有關VB6.0連結的問題

2006-12-30 1:46 am
現我想開一條 超連結 到 一個在 程式所在的資料夾 內的 名為 webpage.htm 的網頁.

我可以怎麼寫?

回答 (1)

2006-12-30 2:00 am
✔ 最佳答案
使用windows api便可, 例子如下:
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 Command1_Click()
ShellExecute 0&, vbNullString, "yourpath\webpage.htm", vbNullString, _
vbNullString, SW_SHOWNORMAL
End Sub


2006-12-30 11:58:38 補充:
  其實是space的
參考: me


收錄日期: 2021-04-13 15:52:29
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20061229000051KK02173

檢視 Wayback Machine 備份