Skip to content

Help on DataGrid

halifaxdal

Asked Nov 2, 2005, 5:51 PM EST1 answer
Share
LinkedInX

Hi all,

In my Windows application I have a datagrid, each record is correspondent to a file in my local machine, I want to click on the record, and then open the file, if the type is pdf, then Adobe will be started.

Do you know how to do this? I know in Web application it's not a problem, but I don't know how to do this in Windows application.

Thanks.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    This forum is not good as VBCity, I posted the same question there, in case somebody might have the same question, here is the answer:

    Code
    System.Diagnostics.Process proc = new Process();
    proc.StartInfo.FileName = "C:\\Archive Center\\Book1.xls";
    proc.StartInfo.ErrorDialog = true;
    proc.Start();
    0