carlos2000
New Member
سلام من میخوام که با زدن یک باتن یک صدا هم با اون به صدا در بیاد مثلا یه صدای دینگ کسی راهی بلده یا مثالی
System.Console.Beep();
System.Media.SystemSounds.Asterisk.Play();
System.Media.SystemSounds.Beep.Play();
System.Media.SystemSounds.Exclamation.Play();
System.Media.SystemSounds.Hand.Play();
System.Media.SystemSounds.Question.Play();
using System.Runtime.InteropServices;
[DllImport("winmm.dll")]
static extern int PlaySound(string fileName,int hid,int fwSound);
PlaySound("C:\\2AFM.wav",0,1);
System.Media.SoundPlayer Player = new System.Media.SoundPlayer(FileN);
Player.PlayLooping();