Public Class Form1
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents Timer1 As System.Windows.Forms.Timer
Friend WithEvents Timer2 As System.Windows.Forms.Timer
Friend WithEvents Timer3 As System.Windows.Forms.Timer
Friend WithEvents Button1 As System.Windows.Forms.Button
Friend WithEvents Button2 As System.Windows.Forms.Button
Friend WithEvents Button3 As System.Windows.Forms.Button
Friend WithEvents ComboBox1 As System.Windows.Forms.ComboBox
Friend WithEvents Button4 As System.Windows.Forms.Button
Friend WithEvents PictureBox1 As System.Windows.Forms.PictureBox
Friend WithEvents PictureBox3 As System.Windows.Forms.PictureBox
Friend WithEvents PictureBox4 As System.Windows.Forms.PictureBox
Friend WithEvents Label4 As System.Windows.Forms.Label
Friend WithEvents lblsoldi As System.Windows.Forms.Label
Friend WithEvents Label6 As System.Windows.Forms.Label
Friend WithEvents txtpuntata As System.Windows.Forms.TextBox
Friend WithEvents Label5 As System.Windows.Forms.Label
Friend WithEvents Label7 As System.Windows.Forms.Label
Friend WithEvents Label8 As System.Windows.Forms.Label
Friend WithEvents Label9 As System.Windows.Forms.Label
Friend WithEvents Label10 As System.Windows.Forms.Label
Friend WithEvents Button5 As System.Windows.Forms.Button
Friend WithEvents RadioButton2 As System.Windows.Forms.RadioButton
Friend WithEvents RadioButton1 As System.Windows.Forms.RadioButton
Friend WithEvents Button6 As System.Windows.Forms.Button
Friend WithEvents Button7 As System.Windows.Forms.Button
Friend WithEvents Button8 As System.Windows.Forms.Button
Friend WithEvents Panel1 As System.Windows.Forms.Panel
Friend WithEvents Panel2 As System.Windows.Forms.Panel
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Form1))
Me.Label1 = New System.Windows.Forms.Label
Me.Label2 = New System.Windows.Forms.Label
Me.Label3 = New System.Windows.Forms.Label
Me.Timer1 = New System.Windows.Forms.Timer(Me.components)
Me.Timer2 = New System.Windows.Forms.Timer(Me.components)
Me.Timer3 = New System.Windows.Forms.Timer(Me.components)
Me.Button1 = New System.Windows.Forms.Button
Me.Button2 = New System.Windows.Forms.Button
Me.Button3 = New System.Windows.Forms.Button
Me.ComboBox1 = New System.Windows.Forms.ComboBox
Me.Button4 = New System.Windows.Forms.Button
Me.PictureBox1 = New System.Windows.Forms.PictureBox
Me.PictureBox3 = New System.Windows.Forms.PictureBox
Me.PictureBox4 = New System.Windows.Forms.PictureBox
Me.Label4 = New System.Windows.Forms.Label
Me.lblsoldi = New System.Windows.Forms.Label
Me.Label6 = New System.Windows.Forms.Label
Me.txtpuntata = New System.Windows.Forms.TextBox
Me.Label5 = New System.Windows.Forms.Label
Me.Label7 = New System.Windows.Forms.Label
Me.Label8 = New System.Windows.Forms.Label
Me.Label9 = New System.Windows.Forms.Label
Me.Label10 = New System.Windows.Forms.Label
Me.Button5 = New System.Windows.Forms.Button
Me.RadioButton2 = New System.Windows.Forms.RadioButton
Me.RadioButton1 = New System.Windows.Forms.RadioButton
Me.Button6 = New System.Windows.Forms.Button
Me.Button7 = New System.Windows.Forms.Button
Me.Button8 = New System.Windows.Forms.Button
Me.Panel1 = New System.Windows.Forms.Panel
Me.Panel2 = New System.Windows.Forms.Panel
Me.Panel2.SuspendLayout()
Me.SuspendLayout()
'
'Label1
'
Me.Label1.BackColor = System.Drawing.Color.Black
Me.Label1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.Label1.Font = New System.Drawing.Font("Comic Sans MS", 72.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label1.ForeColor = System.Drawing.Color.Red
Me.Label1.Location = New System.Drawing.Point(208, 304)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(120, 176)
Me.Label1.TabIndex = 0
'
'Label2
'
Me.Label2.BackColor = System.Drawing.Color.Black
Me.Label2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.Label2.Font = New System.Drawing.Font("Comic Sans MS", 72.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label2.ForeColor = System.Drawing.Color.Red
Me.Label2.Location = New System.Drawing.Point(344, 304)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(120, 176)
Me.Label2.TabIndex = 1
'
'Label3
'
Me.Label3.BackColor = System.Drawing.Color.Black
Me.Label3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.Label3.Font = New System.Drawing.Font("Comic Sans MS", 72.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label3.ForeColor = System.Drawing.Color.Red
Me.Label3.Location = New System.Drawing.Point(480, 304)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(120, 176)
Me.Label3.TabIndex = 2
'
'Timer1
'
Me.Timer1.Interval = 800
'
'Timer2
'
Me.Timer2.Interval = 800
'
'Timer3
'
Me.Timer3.Interval = 800
'
'Button1
'
Me.Button1.BackColor = System.Drawing.Color.Black
Me.Button1.Font = New System.Drawing.Font("Comic Sans MS", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Button1.ForeColor = System.Drawing.Color.Red
Me.Button1.Location = New System.Drawing.Point(216, 232)
Me.Button1.Name = "Button1"
Me.Button1.Size = New System.Drawing.Size(120, 32)
Me.Button1.TabIndex = 3
Me.Button1.Text = "STOPPA A"
Me.Button1.Visible = False
'
'Button2
'
Me.Button2.BackColor = System.Drawing.Color.Black
Me.Button2.Font = New System.Drawing.Font("Comic Sans MS", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Button2.ForeColor = System.Drawing.Color.Red
Me.Button2.Location = New System.Drawing.Point(344, 232)
Me.Button2.Name = "Button2"
Me.Button2.Size = New System.Drawing.Size(128, 32)
Me.Button2.TabIndex = 4
Me.Button2.Text = "STOPPA B"
Me.Button2.Visible = False
'
'Button3
'
Me.Button3.BackColor = System.Drawing.Color.Black
Me.Button3.Font = New System.Drawing.Font("Comic Sans MS", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Button3.ForeColor = System.Drawing.Color.Red
Me.Button3.Location = New System.Drawing.Point(480, 232)
Me.Button3.Name = "Button3"
Me.Button3.Size = New System.Drawing.Size(120, 32)
Me.Button3.TabIndex = 5
Me.Button3.Text = "STOPPA C"
Me.Button3.Visible = False
'
'ComboBox1
'
Me.ComboBox1.Items.AddRange(New Object() {"1", "2", "3", "4", "5", "6", "7"})
Me.ComboBox1.Location = New System.Drawing.Point(424, 88)
Me.ComboBox1.Name = "ComboBox1"
Me.ComboBox1.Size = New System.Drawing.Size(48, 21)
Me.ComboBox1.TabIndex = 9
Me.ComboBox1.Visible = False
'
'Button4
'
Me.Button4.BackColor = System.Drawing.Color.Black
Me.Button4.Font = New System.Drawing.Font("Comic Sans MS", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Button4.ForeColor = System.Drawing.Color.Red
Me.Button4.Location = New System.Drawing.Point(480, 88)
Me.Button4.Name = "Button4"
Me.Button4.Size = New System.Drawing.Size(112, 24)
Me.Button4.TabIndex = 10
Me.Button4.Text = "Conferma"
Me.Button4.Visible = False
'
'PictureBox1
'
Me.PictureBox1.Image = CType(resources.GetObject("PictureBox1.Image"), System.Drawing.Image)
Me.PictureBox1.Location = New System.Drawing.Point(0, 0)
Me.PictureBox1.Name = "PictureBox1"
Me.PictureBox1.Size = New System.Drawing.Size(792, 608)
Me.PictureBox1.TabIndex = 13
Me.PictureBox1.TabStop = False
'
'PictureBox3
'
Me.PictureBox3.Image = CType(resources.GetObject("PictureBox3.Image"), System.Drawing.Image)
Me.PictureBox3.Location = New System.Drawing.Point(208, 80)
Me.PictureBox3.Name = "PictureBox3"
Me.PictureBox3.Size = New System.Drawing.Size(208, 64)
Me.PictureBox3.TabIndex = 15
Me.PictureBox3.TabStop = False
'
'PictureBox4
'
Me.PictureBox4.BackColor = System.Drawing.Color.White
Me.PictureBox4.Location = New System.Drawing.Point(208, 80)
Me.PictureBox4.Name = "PictureBox4"
Me.PictureBox4.Size = New System.Drawing.Size(400, 192)
Me.PictureBox4.TabIndex = 16
Me.PictureBox4.TabStop = False
'
'Label4
'
Me.Label4.BackColor = System.Drawing.Color.White
Me.Label4.Font = New System.Drawing.Font("Comic Sans MS", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label4.ForeColor = System.Drawing.Color.Red
Me.Label4.Location = New System.Drawing.Point(232, 200)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(360, 24)
Me.Label4.TabIndex = 17
Me.Label4.Text = "Seleziona Il Livello E Clicca Su Conferma"
Me.Label4.Visible = False
'
'lblsoldi
'
Me.lblsoldi.BackColor = System.Drawing.Color.Black
Me.lblsoldi.Font = New System.Drawing.Font("Comic Sans MS", 14.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lblsoldi.ForeColor = System.Drawing.Color.Red
Me.lblsoldi.Location = New System.Drawing.Point(288, 32)
Me.lblsoldi.Name = "lblsoldi"
Me.lblsoldi.Size = New System.Drawing.Size(240, 32)
Me.lblsoldi.TabIndex = 18
'
'Label6
'
Me.Label6.BackColor = System.Drawing.Color.Black
Me.Label6.Location = New System.Drawing.Point(376, 64)
Me.Label6.Name = "Label6"
Me.Label6.Size = New System.Drawing.Size(8, 8)
Me.Label6.TabIndex = 19
Me.Label6.Text = "Label6"
'
'txtpuntata
'
Me.txtpuntata.Location = New System.Drawing.Point(488, 512)
Me.txtpuntata.Name = "txtpuntata"
Me.txtpuntata.Size = New System.Drawing.Size(208, 20)
Me.txtpuntata.TabIndex = 20
Me.txtpuntata.Text = ""
'
'Label5
'
Me.Label5.BackColor = System.Drawing.Color.Black
Me.Label5.Location = New System.Drawing.Point(480, 512)
Me.Label5.Name = "Label5"
Me.Label5.Size = New System.Drawing.Size(232, 32)
Me.Label5.TabIndex = 21
'
'Label7
'
Me.Label7.BackColor = System.Drawing.Color.Black
Me.Label7.Font = New System.Drawing.Font("Comic Sans MS", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label7.ForeColor = System.Drawing.Color.Red
Me.Label7.Location = New System.Drawing.Point(344, 512)
Me.Label7.Name = "Label7"
Me.Label7.Size = New System.Drawing.Size(136, 32)
Me.Label7.TabIndex = 22
Me.Label7.Text = "PUNTATA :"
'
'Label8
'
Me.Label8.BackColor = System.Drawing.Color.Black
Me.Label8.Font = New System.Drawing.Font("Comic Sans MS", 14.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label8.ForeColor = System.Drawing.Color.Red
Me.Label8.Location = New System.Drawing.Point(480, 32)
Me.Label8.Name = "Label8"
Me.Label8.Size = New System.Drawing.Size(48, 32)
Me.Label8.TabIndex = 23
Me.Label8.Text = "€"
'
'Label9
'
Me.Label9.AccessibleRole = System.Windows.Forms.AccessibleRole.MenuBar
Me.Label9.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Label9.Font = New System.Drawing.Font("Microsoft Sans Serif", 15.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label9.ForeColor = System.Drawing.Color.Black
Me.Label9.Location = New System.Drawing.Point(0, 48)
Me.Label9.Name = "Label9"
Me.Label9.Size = New System.Drawing.Size(192, 24)
Me.Label9.TabIndex = 28
Me.Label9.Text = "Seleziona Il Gioco : "
'
'Label10
'
Me.Label10.Font = New System.Drawing.Font("Microsoft Sans Serif", 15.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(2, Byte))
Me.Label10.Location = New System.Drawing.Point(0, 16)
Me.Label10.Name = "Label10"
Me.Label10.Size = New System.Drawing.Size(176, 32)
Me.Label10.TabIndex = 27
Me.Label10.Text = "SLOT MACHINE"
'
'Button5
'
Me.Button5.Font = New System.Drawing.Font("Comic Sans MS", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Button5.Location = New System.Drawing.Point(24, 144)
Me.Button5.Name = "Button5"
Me.Button5.Size = New System.Drawing.Size(128, 32)
Me.Button5.TabIndex = 26
Me.Button5.Text = "&Conferma"
'
'RadioButton2
'
Me.RadioButton2.Location = New System.Drawing.Point(32, 112)
Me.RadioButton2.Name = "RadioButton2"
Me.RadioButton2.Size = New System.Drawing.Size(120, 24)
Me.RadioButton2.TabIndex = 25
Me.RadioButton2.Text = "Gioco Due"
'
'RadioButton1
'
Me.RadioButton1.Location = New System.Drawing.Point(32, 80)
Me.RadioButton1.Name = "RadioButton1"
Me.RadioButton1.Size = New System.Drawing.Size(120, 24)
Me.RadioButton1.TabIndex = 24
Me.RadioButton1.Text = " Gioco Uno"
'
'Button6
'
Me.Button6.BackColor = System.Drawing.Color.Black
Me.Button6.Font = New System.Drawing.Font("Comic Sans MS", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Button6.ForeColor = System.Drawing.Color.Red
Me.Button6.Location = New System.Drawing.Point(216, 232)
Me.Button6.Name = "Button6"
Me.Button6.Size = New System.Drawing.Size(384, 32)
Me.Button6.TabIndex = 29
Me.Button6.Text = "STOPPA TUTTI E TRE"
Me.Button6.Visible = False
'
'Button7
'
Me.Button7.Font = New System.Drawing.Font("Comic Sans MS", 15.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Button7.Location = New System.Drawing.Point(488, 560)
Me.Button7.Name = "Button7"
Me.Button7.Size = New System.Drawing.Size(216, 32)
Me.Button7.TabIndex = 30
Me.Button7.Text = "Conferma"
'
'Button8
'
Me.Button8.Font = New System.Drawing.Font("Comic Sans MS", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Button8.Location = New System.Drawing.Point(24, 184)
Me.Button8.Name = "Button8"
Me.Button8.Size = New System.Drawing.Size(128, 32)
Me.Button8.TabIndex = 31
Me.Button8.Text = "&Esci dal gioco"
'
'Panel1
'
Me.Panel1.Location = New System.Drawing.Point(0, 24)
Me.Panel1.Name = "Panel1"
Me.Panel1.Size = New System.Drawing.Size(200, 264)
Me.Panel1.TabIndex = 32
'
'Panel2
'
Me.Panel2.Controls.Add(Me.Label9)
Me.Panel2.Controls.Add(Me.RadioButton1)
Me.Panel2.Controls.Add(Me.RadioButton2)
Me.Panel2.Controls.Add(Me.Button5)
Me.Panel2.Controls.Add(Me.Button8)
Me.Panel2.Location = New System.Drawing.Point(0, 8)
Me.Panel2.Name = "Panel2"
Me.Panel2.Size = New System.Drawing.Size(192, 232)
Me.Panel2.TabIndex = 33
'
'Form1
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.BackColor = System.Drawing.Color.Red
Me.ClientSize = New System.Drawing.Size(792, 598)
Me.Controls.Add(Me.Label10)
Me.Controls.Add(Me.Panel2)
Me.Controls.Add(Me.Button7)
Me.Controls.Add(Me.Button6)
Me.Controls.Add(Me.Label8)
Me.Controls.Add(Me.Label7)
Me.Controls.Add(Me.txtpuntata)
Me.Controls.Add(Me.Label5)
Me.Controls.Add(Me.Label6)
Me.Controls.Add(Me.lblsoldi)
Me.Controls.Add(Me.Label4)
Me.Controls.Add(Me.PictureBox3)
Me.Controls.Add(Me.Button4)
Me.Controls.Add(Me.ComboBox1)
Me.Controls.Add(Me.Button3)
Me.Controls.Add(Me.Button2)
Me.Controls.Add(Me.Button1)
Me.Controls.Add(Me.Label3)
Me.Controls.Add(Me.Label2)
Me.Controls.Add(Me.Label1)
Me.Controls.Add(Me.PictureBox4)
Me.Controls.Add(Me.PictureBox1)
Me.Controls.Add(Me.Panel1)
Me.Name = "Form1"
Me.Text = "Form1"
Me.Panel2.ResumeLayout(False)
Me.ResumeLayout(False)
End Sub
#End Region
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim a As Integer
a = (Rnd() * 8) + 1
Label1.Text = a
End Sub
Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
Dim b As Integer
b = (Rnd() * 8) + 1
Label2.Text = b
End Sub
Private Sub Timer3_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer3.Tick
Dim c As Integer
c = (Rnd() * 8) + 1
Label3.Text = c
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim x
ComboBox1.Text = ""
Randomize()
Me.Text = " Slot Machine By KrYsTaL "
lblsoldi.Text = Val(500)
txtpuntata.Text = Val(0)
If RadioButton1.Checked = True Then
Button1.Visible = False
Button2.Visible = False
Button3.Visible = False
Button5.Visible = True
End If
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Timer1.Enabled = False
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Timer2.Enabled() = False
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Timer3.Enabled = False
If Label1.Text = Label2.Text And Label2.Text = Label3.Text Then
lblsoldi.Text = Val(lblsoldi.Text) + Val(txtpuntata.Text)
MsgBox("Complimenti Hai Guadagnato " & CStr(txtpuntata.Text) & " Quindi Il Tuo Budget Totale è " & CStr(lblsoldi.Text) & " Puoi Ripuntare ora ")
ElseIf Label1.Text = Label2.Text Or Label2.Text = Label3.Text Or Label1.Text = Label3.Text Then
lblsoldi.Text = Val(lblsoldi.Text) + (Val(txtpuntata.Text) / 2)
MsgBox("Complimenti " & CStr(txtpuntata.Text) & " Quindi Il Tuo Budget Totale è " & CStr(lblsoldi.Text) & " Puoi Ripuntare ora ")
Else
lblsoldi.Text = Val(lblsoldi.Text) - Val(txtpuntata.Text)
MsgBox("Hai Perso " & CStr(txtpuntata.Text) & " Quindi Il Tuo Budget Totale è " & CStr(lblsoldi.Text) & " Puoi Ripuntare ora ")
End If
If lblsoldi.Text <= 0 Then
MsgBox("GAME OVER!!!!!!", MsgBoxStyle.Critical)
EXIT IF
End If
Timer1.Enabled = True
Timer2.Enabled = True
Timer3.Enabled = True
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
Dim x As Integer
x = ComboBox1.Text
Label4.Text = "Il tuo Livello è " & CStr(ComboBox1.Text) & " ,Ora Fai La Tua Puntata "
Select Case ComboBox1.Text
Case 1
Timer1.Interval = "800"
Timer2.Interval = "800"
Timer3.Interval = "800"
Case 2
Timer1.Interval = "700"
Timer2.Interval = "700"
Timer3.Interval = "700"
Case 3
Timer1.Interval = "600"
Timer2.Interval = "600"
Timer3.Interval = "600"
Case 4
Timer1.Interval = "500"
Timer2.Interval = "500"
Timer3.Interval = "500"
Case 5
Timer1.Interval = "400"
Timer2.Interval = "400"
Timer3.Interval = "400"
Case 6
Timer1.Interval = "300"
Timer2.Interval = "300"
Timer3.Interval = "300"
Case 7
Timer1.Interval = "200"
Timer2.Interval = "200"
Timer3.Interval = "200"
End Select
Me.Text = " Slot Machine By KrYsTaL - Il livello Attuale è " & CStr(x)
End Sub
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
If RadioButton1.Checked = True And RadioButton2.Checked = False Then
ComboBox1.Visible = True
Button1.Visible = True
Button2.Visible = True
Button3.Visible = True
Button4.Visible = True
Button6.Visible = False
Label4.Visible = True
ElseIf RadioButton1.Checked = False And RadioButton2.Checked = True Then
Button4.Visible = True
ComboBox1.Visible = True
Button6.Visible = True
Button1.Visible = False
Button2.Visible = False
Button3.Visible = False
Label4.Visible = True
End If
End Sub
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
Timer1.Enabled = False
Timer2.Enabled = False
Timer3.Enabled = False
If Label1.Text = Label2.Text And Label2.Text = Label3.Text Then
lblsoldi.Text = Val(lblsoldi.Text) + Val(txtpuntata.Text)
MsgBox("Complimenti Hai Guadagnato " & CStr(txtpuntata.Text) & " Quindi Il Tuo Budget Totale è " & CStr(lblsoldi.Text) & " Puoi Ripuntare ora ")
ElseIf Label1.Text = Label2.Text Or Label2.Text = Label3.Text Or Label1.Text = Label3.Text Then
lblsoldi.Text = Val(lblsoldi.Text) + (Val(txtpuntata.Text) / 2)
MsgBox("Complimenti " & CStr(txtpuntata.Text) & " Quindi Il Tuo Budget Totale è " & CStr(lblsoldi.Text) & " Puoi Ripuntare ora ")
Else
lblsoldi.Text = Val(lblsoldi.Text) - Val(txtpuntata.Text)
MsgBox("Hai Perso " & CStr(txtpuntata.Text) & " Quindi Il Tuo Budget Totale è " & CStr(lblsoldi.Text) & " Puoi Ripuntare ora ")
End If
If lblsoldi.Text <= 0 Then
MsgBox("GAME OVER!!!!!!", MsgBoxStyle.Critical)
End
End If
Timer1.Enabled = True
Timer2.Enabled = True
Timer3.Enabled = True
End Sub
Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click
If Val(txtpuntata.Text) > Val(lblsoldi.Text) Then
MsgBox("non hai abbastanza soldi per puntare " & CStr(txtpuntata.Text))
If Val(txtpuntata.Text) = 0 Then
MsgBox("devi puntare almeno 1 €")
Else
Timer1.Enabled = True
Timer2.Enabled = True
Timer3.Enabled = True
End If
End If
End Sub
Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click
End
End Sub
End Class