Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
- ProgressBar1.Increment(1)
- If ProgressBar1.Value = ProgressBar1.Maximum Then
- Timer1.Stop()
- Dim kod As Integer
- kod = (Rnd() * 9)
- Select Case kod
- Case 1
- TextBox1.Text = "kod1"
- Case 2
- TextBox1.Text = "kod2"
- Case 3
- TextBox1.Text = "kod3"
- Case 4
- TextBox1.Text = "kod4"
- Case 5
- TextBox1.Text = "kod5"
- Case 6
- TextBox1.Text = "kod6"
- Case 7
- TextBox1.Text = "key7"
- Case 8
- TextBox1.Text = "kod8"
- Case 9
- TextBox1.Text = "kod9"
- End Select
- MsgBox("Udalo sie")
- End If
- End Sub
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- Timer1.Start()
- ProgressBar1.Value = ProgressBar1.Minimum
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment