Results 1 to 2 of 2

Thread: [RESOLVED] Opening file in specific application

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2003
    Location
    Newark-on-trent, Nottingham
    Posts
    243

    Resolved [RESOLVED] Opening file in specific application

    Hi,

    I am building an application to allow me to search select tracks from a specific folder and play them using a specific application.

    Code:
        Private Sub DataGridView1_CellContentDoubleClick(sender As Object, e As DataGridViewCellEventArgs) Handles DataGridView1.CellContentDoubleClick
            Dim id As String = DataGridView1.SelectedCells(0).Value.ToString()
            Dim app As String = "C:\Program Files (x86)\Karaoke Builder Player\kbplayer.exe"
            Dim file As String = "C:\Users\StephenPC\Desktop\Karaoke\" & id
            System.Diagnostics.Process.Start(app, file)
        End Sub
    Opens the correct application but the specified file does not load... any pointers?

    Thanks

    Steve

  2. #2
    PowerPoster Poppa Mintin's Avatar
    Join Date
    Mar 2009
    Location
    Bottesford, North Lincolnshire, England.
    Posts
    2,429

    Re: [RESOLVED] Opening file in specific application

    Hi Stephena,

    Did you try your line: System.Diagnostics.Process.Start(app, file) without the " System.Diagnostics". i.e. just "Process.Start(app, file)".


    Poppa.
    Last edited by Poppa Mintin; Jun 20th, 2018 at 08:30 AM. Reason: Typo.
    Along with the sunshine there has to be a little rain sometime.

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