Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Beep Program.

timer

  • Please log in to reply
19 replies to this topic

#13 chili5

chili5

    CC Mentor

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 3038 posts
  • Programming Language:Java, C#, PHP, JavaScript, Ruby, Transact-SQL
  • Learning:C, Java, C++, C#, PHP, JavaScript, Ruby, Transact-SQL, Assembly, Scheme, Haskell, Others

Posted 21 March 2009 - 05:16 AM

No, it doesn't work. :confused: Your timer does nothing.

Do you know how to code the timer?

Private Sub Timer1_Timer()

End Sub

  • 0

#14 Termana

Termana

    CC Devotee

  • Just Joined
  • PipPipPipPipPipPip
  • 971 posts

Posted 21 March 2009 - 05:19 AM

Main Thing is ." it Works "

I was thinking of giving +rep for the tutorial - then you said that. Just because it works does not mean you should allow it or do it, especially when you are trying to teach other people - who may be less experienced - how to do things.
  • 0

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


#15 mendim.

mendim.

    CC Devotee

  • Just Joined
  • PipPipPipPipPipPip
  • 741 posts

Posted 22 March 2009 - 01:10 PM

I was thinking of giving +rep for the tutorial - then you said that. Just because it works does not mean you should allow it or do it, especially when you are trying to teach other people - who may be less experienced - how to do things.


i think i've explained it good ! :$
but the function of the timer is "how long THE BEEP will Sound " but it didn't work :S
But it works only just making a BEEP . !!
not long but just to tell us that's working :S
  • 0

#16 VBnet

VBnet

    CC Newcomer

  • Just Joined
  • PipPip
  • 16 posts

Posted 06 May 2009 - 11:50 PM

hmm... I dont get it.. when i click "start" nothing happens, ive placed the timer, and set the interval to 2000, what am i doing wrong?
  • 0

#17 chili5

chili5

    CC Mentor

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 3038 posts
  • Programming Language:Java, C#, PHP, JavaScript, Ruby, Transact-SQL
  • Learning:C, Java, C++, C#, PHP, JavaScript, Ruby, Transact-SQL, Assembly, Scheme, Haskell, Others

Posted 07 May 2009 - 02:29 AM

In the timer start event, you need something like this:

Private Sub Timer1_Timer()
Beep
End Sub

In the timer event, you need to call Console.beep. You didn't do anything wrong, the author left out this important detail.
  • 0

#18 VBnet

VBnet

    CC Newcomer

  • Just Joined
  • PipPip
  • 16 posts

Posted 07 May 2009 - 02:43 AM

No, it doesn't work. :confused: Your timer does nothing.

Do you know how to code the timer?

Private Sub Timer1_Timer()

End Sub


Private Sub Timer1_Timer()
Beep
End Sub
  • 0

#19 chili5

chili5

    CC Mentor

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 3038 posts
  • Programming Language:Java, C#, PHP, JavaScript, Ruby, Transact-SQL
  • Learning:C, Java, C++, C#, PHP, JavaScript, Ruby, Transact-SQL, Assembly, Scheme, Haskell, Others

Posted 07 May 2009 - 02:46 AM

Yea, but you would have to change it slightly for VB.NET. :)
  • 0

#20 Vswe

Vswe

    CC Leader

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1989 posts
  • Programming Language:Java, C#, PHP, Python, JavaScript, PL/SQL, Visual Basic .NET, Lua, ActionScript

Posted 08 May 2009 - 06:57 AM

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


I created a song with only the beep sound, :D but I don't know how to record it (I only have the code right now).
  • 0





Also tagged with one or more of these keywords: timer

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download