VB2010 - Beep
Hello, in this tutorial I'll teach you how you can make your computer make a beeping sound when you click a button.
Start by opening a new project. Call it Beep.
Add a new button:
Double click the button and add the following codes:
System.Console.Beep()
To make it more interesting, you could also add a frequency and you could also state how long you want it to beep by doing this:
System.Console.Beep(2000,1000) 'the 2000 will be the frequency and the 1000 is the interval in miliseconds
Source codes:Beep.rar (59,2 kB)
Topic: VB2010 - Beep
No comments found.