It shows
to play system sounds using C#.NET
Keywords:
sound, system sounds, System.Media.SystemSounds, SystemSounds,
Csharp.NET
Here the full Code to play system sounds.
using
System;
using
System.Collections.Generic;
using
System.ComponentModel;
using
System.Data;
using
System.Drawing;
using
System.Linq;
using
System.Text;
using
System.Windows.Forms;
namespace
textcsharp
{
public partial class Form1 : Form
{
public
Form1()
{
InitializeComponent();
}
private
void btnAsterisk_Click(object
sender, EventArgs e)
{
System.Media.SystemSounds.Asterisk.Play();
}
private
void btnBeep_Click(object
sender, EventArgs e)
{
System.Media.SystemSounds.Beep.Play();
}
private
void btnExclamation_Click(object sender, EventArgs
e)
{
System.Media.SystemSounds.Exclamation.Play();
}
}
}
Note: If you have any suggestions or any topics to be posted, please contact us Email: sivodayatech@dotnetdevelopertool.com
No comments:
Post a Comment