- Posts: 7
- Thank you received: 0
vb6 [help with linking/command buttons]
18 years 4 months ago #15532
by nibsa
vb6 [help with linking/command buttons] was created by nibsa
you would click on the form "dubble clicking" put this in gen. declare
=============
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
================
for commad button add this code make sure you put path of folder or proggram.
===========
ShellExecute Me.hWnd, "open", "C:\pathhere", vbNullString, "C:\", ByVal 1&
i got this from a web site when i needed it so i figer i share it give something back to the community hope it helps someone here if it does plz leave a reply.
=============
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
================
for commad button add this code make sure you put path of folder or proggram.
===========
ShellExecute Me.hWnd, "open", "C:\pathhere", vbNullString, "C:\", ByVal 1&
i got this from a web site when i needed it so i figer i share it give something back to the community hope it helps someone here if it does plz leave a reply.
Time to create page: 0.116 seconds