Hello guys. I have an application ( size ~3MB ) , with 5 forms. In my principal form i want , like when the program starts , a SoundPlayer to sing.
Ok , look what i did:
first , i loaded my picture ( in resources - Audio - save it )
after that , in my principal program , before public Form1() , i made this:
private SoundPlayer Welcome = new SoundPlayer(Properties.Resources.welcome);
Ok , in my public Form1() , i made this:
When i debug my program ( start my program ) my sound didn't sing normally , it sounds like a scratch ( bzzzzzzzzzzz ).
But , if I made a timer , and i set it as 500ms , and in public Form1() I enable it , and in my timertick function , i do this:
It sounds good !
So , can somebady help me :( ?
Edited 6 Years Ago by charqus: n/a