Visual Basic 2008 – Time Wasting Game



Time Wasting Game In Visual Basic 2008. Just A Simple Game I Thought Of In Visual Basic 2008, it took about 10 minutes to figure out the coding 🙂
The Codes Are:

Button1_Click
Try
Timer1.Enabled = False
Timer2.Enabled = False
Button1.Enabled = False
Button2.Enabled = True
ProgressBar1.Value += TrackBar1.Value
If ProgressBar1.Value = ProgressBar1.Maximum Then
Me.Text = “YOU WON!”
ProgressBar1.Value = 1
Timer1.Enabled = False
Timer2.Enabled = False
Button1.Enabled = False
Button2.Enabled = True
End If
Catch ex As Exception
Me.Text = “YOU WON!”
ProgressBar1.Value = 1
Timer1.Enabled = False
Timer2.Enabled = False
Button1.Enabled = False
Button2.Enabled = True
End Try

Button2_Click
Timer1.Enabled = True
Button1.Enabled = True
Button2.Enabled = False

Timer1_Tick
Try
TrackBar1.Value += 1
If TrackBar1.Value = 30 Then
Timer2.Enabled = True
Timer1.Enabled = False
End If
Catch
Timer2.Enabled = True
Timer1.Enabled = False
End Try

Timer2_Tick
Try
TrackBar1.Value -= 1
If TrackBar1.Value = 0 Then
Timer2.Enabled = False
Timer1.Enabled = True
End If
Catch
Timer2.Enabled = False
Timer1.Enabled = True
End Try

Nguồn: https://anniesnannies-seattle.com/

Xem thêm bài viết khác: https://anniesnannies-seattle.com/game/

10 thoughts on “Visual Basic 2008 – Time Wasting Game

  1. 'How to make a timewasting video on how to make a timewasting game' Jokes lol I love it xD. Also your accent is awesome,

  2. that program is gay because no point in making a tutorial for a wasting game then its wasting time making that application!

Leave a Reply

Your email address will not be published. Required fields are marked *