Pages

March 02, 2013

Code to play sound in axapta

Code to play sound in axapta 

static void ExemploPlaySound(Args _args)
{
    System.Media.SoundPlayer YourMPlayer;
    ;
    YourMPlayer= new System.Media.SoundPlayer();
    YourMPlayer.set_SoundLocation("c:\\xyz.wav");
    YourMPlayer.Play();
}

-Harry

No comments:

Post a Comment

Thanks