code_junkie

SoundPlayer crash on Vista

Nov 10th, 2011
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. using (SoundPlayer myPlayer = new SoundPlayer(Properties.Resources.BEEPPURE))
  2. myPlayer.Play();
  3.  
  4. using (SoundPlayer myPlayer = new SoundPlayer(BEEPPURE))
  5. {
  6. myPlayer.Play();
  7. }
  8.  
  9. SoundPlayer myPlayer = new SoundPlayer(BEEPPURE);
  10. myPlayer.Play();
  11.  
  12. (new SoundPlayer(BEEPPURE)).Play();
Add Comment
Please, Sign In to add comment