Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Question] Countdown 2
#2
Code:
Private Sub Button1_Click(ByVal sender As System.Object, _
            ByVal e As System.EventArgs) Handles Button1.Click
        Dim frequency As Integer = 10000
        Dim duration As Integer = 5000

        Console.Beep(frequency, duration)
    End Sub

    Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As  _
        System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
        'allows only numbers
        'and backspace
        If (e.KeyChar < "0" OrElse e.KeyChar > "9") _
            AndAlso e.KeyChar <> ControlChars.Back Then
            e.Handled = True
        End If
    End Sub

you get the idea
~ Digital-Punk
Reply


Messages In This Thread
[Question] Countdown 2 - by p1g 0wnz - 12-29-2009, 11:23 AM
RE: [Question] Countdown 2 - by Digital-Punk - 12-29-2009, 03:32 PM
RE: [Question] Countdown 2 - by dunlop03 - 12-29-2009, 05:04 PM
RE: [Question] Countdown 2 - by p1g 0wnz - 12-29-2009, 05:45 PM
RE: [Question] Countdown 2 - by dunlop03 - 12-29-2009, 05:49 PM
RE: [Question] Countdown 2 - by p1g 0wnz - 12-29-2009, 06:15 PM
RE: [Question] Countdown 2 - by dunlop03 - 12-29-2009, 06:20 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Question]CountDown p1g 0wnz 7 1,400 12-29-2009, 09:39 AM
Last Post: Digital-Punk

Forum Jump:


Users browsing this thread: 1 Guest(s)