Results 1 to 5 of 5

Thread: [RESOLVED] Loading file

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2010
    Location
    Nepal | Beni bazar myagdi,kalipul
    Posts
    39

    Resolved [RESOLVED] Loading file

    Hello friends how we can load a file as like setup file or any other else

  2. #2

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Loading file

    By "load" do you mean execute via VB6 code?

  4. #4

    Thread Starter
    Member
    Join Date
    Jun 2010
    Location
    Nepal | Beni bazar myagdi,kalipul
    Posts
    39

    Re: Loading file

    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.

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Loading file

    Try
    vb Code:
    1. Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _
    2. (ByVal hwnd As Long, _
    3. ByVal lpOperation As String, _
    4. ByVal lpFile As String, _
    5. ByVal lpParameters As String, _
    6. ByVal lpDirectory As String, _
    7. ByVal nShowCmd As Long) As Long
    8.  
    9. Private Const SW_SHOWNORMAL = 1
    10.  
    11. Private Sub Command1_Click()
    12.  ShellExecute Me.hwnd, vbNullString, "name of your file goes here", vbNullString, "C:\", SW_SHOWNORMAL
    13. End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width