Professional Documents
Culture Documents
public partial class Form1 : Form 11. { 12. public Form1() 13. { 14. InitializeComponent(); 15. } 16. 17. [DllImport("kernel32.dll")] 18. public static extern bool Beep(int BeepFreq, int BeepDuration); 19. 20. private void button1_Click(object sender, EventArgs e) 21. { 22. Beep(500, 100); 23. } 24. } 25. }