PDA

View Full Version : มาทำให้ vb เปิดfile อะไรก็ได้กัน ^^



tonhor
18-04-2007, 12:36 AM
มาทำให้ vb เปิดfile อะไรก็ได้กัน ^^

ตัวอย่าง นี้ ผมจะให้เปิด file pdf นะครับ

[hide=10][code]
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 Sub Command1_Click()