Advertisement
Fhernd

Principal.cs

Mar 14th, 2018
1,168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.53 KB | None | 0 0
  1. using System;
  2. using System.Media;
  3. using System.Threading;
  4. using System.Windows.Forms;
  5.  
  6. namespace R809ReproducirSonido
  7. {
  8.     public partial class Programa : Form
  9.     {
  10.         public Programa()
  11.         {
  12.             InitializeComponent();
  13.         }
  14.  
  15.         private void Programa_Load(object sender, EventArgs e)
  16.         {
  17.             Console.Beep();
  18.             Thread.Sleep(500);
  19.  
  20.             Console.Beep(200, 300);
  21.             Thread.Sleep(500);
  22.  
  23.             SystemSounds.Exclamation.Play();
  24.         }
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement