jhylands

Pass the bomb

May 18th, 2012
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.65 KB | None | 0 0
  1. Public Class Form1
  2.     Dim x As Integer = 5
  3.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  4.         x = x ^ 2 Mod 97 * 1511
  5.  
  6.         Timer1.Interval = x
  7.         Timer1.Enabled = True
  8.     End Sub
  9.  
  10.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  11.         For i = 0 To 5
  12.             x = x ^ 2 Mod 97 * 1511
  13.         Next
  14.     End Sub
  15.  
  16.     Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  17.         My.Computer.Audio.Play("C:\Documents and Settings\James\Desktop\1.wav")
  18.     End Sub
  19. End Class
Advertisement
Add Comment
Please, Sign In to add comment