VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



A really annoying program that randomly beeps!

by Glen Martin aged 13 (1 Submission)
Category: Games
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sat 7th June 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)

A really annoying program that randomly beeps!

API Declarations


'Also place a timer

Rate A really annoying program that randomly beeps!



    currentBeeps = 0
    Timer1.Interval = 1000
    Timer1.Interval = 100
    Form1.Visible = False
    App.TaskVisible = False 'Comment out this line of code if 
                            'you want the program to appear in the
                            'Ctrl+Alt+Del list, there is no way to 
                            'close it if the valse is false!
    
    Randomize
End Sub

Private Sub Timer1_Timer()
    
    If (Int(20 * Rnd) + 1) = 1 Then
        Do
        Beep
        currentBeeps = currentBeeps + 1
        Loop Until (currentBeeps > 6000) And (Int((5000 * Rnd) + 1) = 1)
        
        currentBeeps = 0
    End If
    
End Sub



Download this snippet    Add to My Saved Code

A really annoying program that randomly beeps! Comments

No comments have been posted about A really annoying program that randomly beeps!. Why not be the first to post a comment about A really annoying program that randomly beeps!.

Post your comment

Subject:
Message:
0/1000 characters