Jump to content

Beep Program.

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
19 replies to this topic

#1
mendim.

mendim.

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,393 posts
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 ..
Posted Image

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 ..

    Console.Beep()

The Second Button Rename with START
If you type this button it will BEEP every Second ..
Code is ..

    Timer1.Start()

The Third Button Rename With STOP
If you type it it will stop the Beeping sound that you'll hear .
Code ..

    Timer1.Stop()

The Fourth Button Rename with QUIT
IT will quit the program
Code

End


Finally will look like this

Posted Image


Thanks , Mendim.

#2
Guest_Jordan_*

Guest_Jordan_*
  • Guests
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)?

#3
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Doesn't there have to be some code to make the timer call console.beep()?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#4
mendim.

mendim.

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,393 posts

Jordan said:

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)?

Maybe it activates any hardware in your PC that makes a BEEPING Sound ..

It's the same end like me.exit
have the same function..:)

#5
MathX

MathX

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 4,001 posts
+rep

Interested in participating in community events?
Want to harness your programming skill and turn it into absolute prowess?
Come join our programming events!


#6
mendim.

mendim.

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,393 posts
Thanks , Broo . :)

#7
chili5

chili5

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 7,248 posts
What's the point of the timer? It doesn't do anything.

Didn't you mean to include:

Private Sub Timer1_Timer()
Beep
End Sub

?

#8
mendim.

mendim.

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,393 posts
Did u read the whole TEXT ??
the timer should be
Add the timer and the interval for that make 1500 or 2000 .


#9
chili5

chili5

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 7,248 posts
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?

#10
mendim.

mendim.

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,393 posts
Okay ..!
did it work for you ?

#11
chili5

chili5

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 7,248 posts
Yes it did! Just thought I'd mention what you missed because as is your timer does nothing.

#12
mendim.

mendim.

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,393 posts
ah ..
okay ! (Y)
The timer was that how long will BEEP make Sound ..
but it doesn't function !

Main Thing is ." it Works "