I have a datagrid that consists of a data-bound hyperlink column binded to
the "Song Name" column of the data source. When user clicks on one of the
links, the associated media application such as RealPlayer or Windows Media
Player will be launched.

I searched through the MSDN Library and found that Windows API can be used
to play simple sounds. Is there other alternatives to achieve it ?

Re: Click on hyperlink column to launch audio clips by S

S
Fri Nov 25 08:51:44 CST 2005

Hi Kim,

You also have the option of using System.Diagnostics.Process.Start() which
acts like Shellexecute in VB6. It will shell the file you provide, and open
it with the default application.

Do a search for it on MSDN.

HTH
ALtaf
--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com


"Kim" <Kim@discussions.microsoft.com> wrote in message
news:664BD820-DBF3-4259-947B-C310AEE0260A@microsoft.com...
>I have a datagrid that consists of a data-bound hyperlink column binded to
> the "Song Name" column of the data source. When user clicks on one of the
> links, the associated media application such as RealPlayer or Windows
> Media
> Player will be launched.
>
> I searched through the MSDN Library and found that Windows API can be used
> to play simple sounds. Is there other alternatives to achieve it ?