Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
 
MSDN Visual Basic Community
 
 
 
 
 
TitlePlay a tone with a specific frequency in Visual Basic .NET
DescriptionThis example shows how to play a tone with a specific frequency in Visual Basic .NET.
Keywordssound, tone, frequency, noise, VB.NET
CategoriesMiscellany, Multimedia
 
When the user clicks the Play button, the following code parses the tone's frequency (Hz) and duration (ms) from text boxes. It then calls System.Console.Beep to play the tone for the indicates duration.
 
Dim freq As Integer = Integer.Parse(txtFrequency.Text)
Dim duration As Integer = Integer.Parse(txtDuration.Text)

System.Console.Beep(freq, duration)
 
 
Copyright © 1997-2006 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated