BEEP Program
Hello CodeCall ..
Today i'm gonna show you a very Easy tutorial but interesting..
We need 4 Buttons and a Timer ..
Add like this ..
Add the timer and the interval for that make 1500 or 2000 .
The First Button Rename with BEEP
If You type This Button it will BEEP only one time ..
and the Code for it is ..
The Second Button Rename with STARTCode:Console.Beep()
If you type this button it will BEEP every Second ..
Code is ..
The Third Button Rename With STOPCode:Timer1.Start()
If you type it it will stop the Beeping sound that you'll hear .
Code ..
The Fourth Button Rename with QUITCode:Timer1.Stop()
IT will quit the program
Code
Code:End
Finally will look like this
Thanks , Mendim.
Very cool, I wonder if you could make a "beep" song with this. Any idea how console.beep() works? Also, don't you have the code wrong for the exit button (shouldn't it be me.exit)?
Doesn't there have to be some code to make the timer call console.beep()?
+rep
Interested in participating in community events?
Want to harness your programming skill and turn it into absolute prowess?
Come join our programming events!
Thanks , Broo .![]()
What's the point of the timer? It doesn't do anything.
Didn't you mean to include:
?Code:Private Sub Timer1_Timer() Beep End Sub
Did u read the whole TEXT ??
the timer should be
Code:Add the timer and the interval for that make 1500 or 2000 .
Yes I did but setting the interval doesn't do anything. You probably what a timer event in your vb.net program that calls console.beep every once and awhile?
Okay ..!
did it work for you ?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks