利用System.Media来做声音提醒
呵呵,比如输错文字,提醒一下:)
郁闷,我的博客出了BUG。
using System.Media;
private void buttonBeep_Click(object sender, EventArgs e)
{
SystemSounds.Beep.Play();
}
private void buttonExclamation_Click(object sender, EventArgs e)
{
SystemSounds.Exclamation.Play();
}
private void buttonAsterisk_Click(object sender, EventArgs e)
{
SystemSounds.Asterisk.Play();
}
private void buttonQuestion_Click(object sender, EventArgs e)
{
SystemSounds.Question.Play();
}
private void buttonHand_Click(object sender, EventArgs e)
{
SystemSounds.Hand.Play();
}
还有好多:) private void buttonBeep_Click(object sender, EventArgs e)
{
SystemSounds.Beep.Play();
}
private void buttonExclamation_Click(object sender, EventArgs e)
{
SystemSounds.Exclamation.Play();
}
private void buttonAsterisk_Click(object sender, EventArgs e)
{
SystemSounds.Asterisk.Play();
}
private void buttonQuestion_Click(object sender, EventArgs e)
{
SystemSounds.Question.Play();
}
private void buttonHand_Click(object sender, EventArgs e)
{
SystemSounds.Hand.Play();
}
郁闷,我的博客出了BUG。