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 BukaBrowser(ByVal NamaFile As String)
ShellExecute Me.hwnd, vbNullString, NamaFile, vbNullString, vbNullString, SW_SHOWNORMAL
End Sub
Private Function FileExists(strNamaFile As String) As Boolean
If Dir$(strNamaFile, vbNormal) = "" Then
FileExists = False
Else
FileExists = True
End If
End Function
Private Sub Command1_Click()
If FileExists("c:\index.html") Then
Call BukaBrowser("c:\index.html")
End If
End Sub
Ari Setiawan <[EMAIL PROTECTED]> wrote:
alooo pren-pren semua
inyong perlu bantuan nih
inyong pengen buat tombol button pada visual basic bisa neglink ke file html misal file itu ada di drive C:
tapi file itu ada di komputer ngak ngelink ke internet
seperti fasilitas help ato readme gitu.
tuh caranya kira-kira gimana yaah
udah pernah peke filepath tapi malah ada pesan kesalahan "file not found" gitu
bantuin inyong yaaah penting nih
trims sebelumnya
lam kenal buat pren-pren milis semua
---------------------------------
Be a chatter box. Enjoy free PC-to-PC calls with Yahoo! Messenger with Voice.
[Non-text portions of this message have been removed]
Untuk berhenti berlangganan kirim email kosong ke : [EMAIL PROTECTED]
Forum ini berkembang dengan pesat, jika anda memiliki
dedikasi dan waktu, silahkan mengaplikasikan diri
menjadi moderator.
SPONSORED LINKS
Computer internet security Computer internet business Computer internet access Computer internet privacy securities Computer internet help Computer internet connection
---------------------------------
YAHOO! GROUPS LINKS
Visit your group "indoprog-vb" on the web.
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[Non-text portions of this message have been removed]
Untuk berhenti berlangganan kirim email kosong ke : [EMAIL PROTECTED]
Forum ini berkembang dengan pesat, jika anda memiliki
dedikasi dan waktu, silahkan mengaplikasikan diri
menjadi moderator.
SPONSORED LINKS
| Computer internet security | Computer internet business | Computer internet access |
| Computer internet privacy securities | Computer internet help | Computer internet connection |
YAHOO! GROUPS LINKS
- Visit your group "indoprog-vb" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
