Hello friends how we can load a file as like setup file or any other else
Printable View
Hello friends how we can load a file as like setup file or any other else
Your question isn't clear - can you ellaborate, please?
By "load" do you mean execute via VB6 code?
No sir just to load file in same format just clicking on command or mnu to open any file like setup file or text file.
Tryvb 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 Const SW_SHOWNORMAL = 1 Private Sub Command1_Click() ShellExecute Me.hwnd, vbNullString, "name of your file goes here", vbNullString, "C:\", SW_SHOWNORMAL End Sub