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 PictureBox1 As System.Windows.Forms.PictureBox
Friend WithEvents PictureBox2 As System.Windows.Forms.PictureBox
Friend WithEvents PictureBox3 As System.Windows.Forms.PictureBox
Friend WithEvents PictureBox4 As System.Windows.Forms.PictureBox
Friend WithEvents PictureBox5 As System.Windows.Forms.PictureBox
Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
Friend WithEvents TextBox2 As System.Windows.Forms.TextBox
Friend WithEvents TextBox3 As System.Windows.Forms.TextBox
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents o1 As System.Windows.Forms.RadioButton
Friend WithEvents o2 As System.Windows.Forms.RadioButton
Friend WithEvents o3 As System.Windows.Forms.RadioButton
Friend WithEvents PictureBox6 As System.Windows.Forms.PictureBox
Friend WithEvents Label4 As System.Windows.Forms.Label
Friend WithEvents Label5 As System.Windows.Forms.Label
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Form1))
Me.PictureBox1 = New System.Windows.Forms.PictureBox
Me.PictureBox2 = New System.Windows.Forms.PictureBox
Me.PictureBox3 = New System.Windows.Forms.PictureBox
Me.PictureBox4 = New System.Windows.Forms.PictureBox
Me.PictureBox5 = New System.Windows.Forms.PictureBox
Me.o1 = New System.Windows.Forms.RadioButton
Me.o2 = New System.Windows.Forms.RadioButton
Me.o3 = New System.Windows.Forms.RadioButton
Me.TextBox1 = New System.Windows.Forms.TextBox
Me.Label1 = New System.Windows.Forms.Label
Me.GroupBox1 = New System.Windows.Forms.GroupBox
Me.Label3 = New System.Windows.Forms.Label
Me.Label2 = New System.Windows.Forms.Label
Me.TextBox3 = New System.Windows.Forms.TextBox
Me.TextBox2 = New System.Windows.Forms.TextBox
Me.PictureBox6 = New System.Windows.Forms.PictureBox
Me.Label4 = New System.Windows.Forms.Label
Me.Label5 = New System.Windows.Forms.Label
Me.GroupBox1.SuspendLayout()
Me.SuspendLayout()
'
'PictureBox1
'
Me.PictureBox1.Image = CType(resources.GetObject("PictureBox1.Image"), System.Drawing.Image)
Me.PictureBox1.Location = New System.Drawing.Point(56, 40)
Me.PictureBox1.Name = "PictureBox1"
Me.PictureBox1.Size = New System.Drawing.Size(152, 192)
Me.PictureBox1.TabIndex = 0
Me.PictureBox1.TabStop = False
'
'PictureBox2
'
Me.PictureBox2.Image = CType(resources.GetObject("PictureBox2.Image"), System.Drawing.Image)
Me.PictureBox2.Location = New System.Drawing.Point(72, 232)
Me.PictureBox2.Name = "PictureBox2"
Me.PictureBox2.Size = New System.Drawing.Size(176, 136)
Me.PictureBox2.TabIndex = 1
Me.PictureBox2.TabStop = False
'
'PictureBox3
'
Me.PictureBox3.Image = CType(resources.GetObject("PictureBox3.Image"), System.Drawing.Image)
Me.PictureBox3.Location = New System.Drawing.Point(48, 376)
Me.PictureBox3.Name = "PictureBox3"
Me.PictureBox3.Size = New System.Drawing.Size(192, 128)
Me.PictureBox3.TabIndex = 2
Me.PictureBox3.TabStop = False
'
'PictureBox4
'
Me.PictureBox4.Image = CType(resources.GetObject("PictureBox4.Image"), System.Drawing.Image)
Me.PictureBox4.Location = New System.Drawing.Point(184, 8)
Me.PictureBox4.Name = "PictureBox4"
Me.PictureBox4.Size = New System.Drawing.Size(280, 56)
Me.PictureBox4.TabIndex = 3
Me.PictureBox4.TabStop = False
'
'PictureBox5
'
Me.PictureBox5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.PictureBox5.Image = CType(resources.GetObject("PictureBox5.Image"), System.Drawing.Image)
Me.PictureBox5.Location = New System.Drawing.Point(256, 384)
Me.PictureBox5.Name = "PictureBox5"
Me.PictureBox5.Size = New System.Drawing.Size(176, 80)
Me.PictureBox5.TabIndex = 4
Me.PictureBox5.TabStop = False
'
'o1
'
Me.o1.BackColor = System.Drawing.SystemColors.ControlText
Me.o1.Location = New System.Drawing.Point(16, 112)
Me.o1.Name = "o1"
Me.o1.Size = New System.Drawing.Size(16, 24)
Me.o1.TabIndex = 5
'
'o2
'
Me.o2.BackColor = System.Drawing.SystemColors.ControlText
Me.o2.Location = New System.Drawing.Point(16, 272)
Me.o2.Name = "o2"
Me.o2.Size = New System.Drawing.Size(16, 24)
Me.o2.TabIndex = 6
'
'o3
'
Me.o3.BackColor = System.Drawing.SystemColors.ControlText
Me.o3.Location = New System.Drawing.Point(16, 424)
Me.o3.Name = "o3"
Me.o3.Size = New System.Drawing.Size(16, 24)
Me.o3.TabIndex = 7
'
'TextBox1
'
Me.TextBox1.Enabled = False
Me.TextBox1.Font = New System.Drawing.Font("Tw Cen MT", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.TextBox1.Location = New System.Drawing.Point(368, 144)
Me.TextBox1.Name = "TextBox1"
Me.TextBox1.Size = New System.Drawing.Size(120, 25)
Me.TextBox1.TabIndex = 8
Me.TextBox1.Text = ""
'
'Label1
'
Me.Label1.Font = New System.Drawing.Font("Comic Sans MS", 15.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label1.ForeColor = System.Drawing.SystemColors.ActiveCaption
Me.Label1.Location = New System.Drawing.Point(368, 104)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(192, 32)
Me.Label1.TabIndex = 9
Me.Label1.Text = "Scelta Computer"
'
'GroupBox1
'
Me.GroupBox1.BackColor = System.Drawing.Color.FromArgb(CType(128, Byte), CType(255, Byte), CType(255, Byte))
Me.GroupBox1.Controls.Add(Me.Label3)
Me.GroupBox1.Controls.Add(Me.Label2)
Me.GroupBox1.Controls.Add(Me.TextBox3)
Me.GroupBox1.Controls.Add(Me.TextBox2)
Me.GroupBox1.Font = New System.Drawing.Font("Comic Sans MS", 14.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.GroupBox1.Location = New System.Drawing.Point(360, 208)
Me.GroupBox1.Name = "GroupBox1"
Me.GroupBox1.Size = New System.Drawing.Size(200, 112)
Me.GroupBox1.TabIndex = 10
Me.GroupBox1.TabStop = False
Me.GroupBox1.Text = "PUTENGGI"
'
'Label3
'
Me.Label3.Font = New System.Drawing.Font("Comic Sans MS", 15.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label3.ForeColor = System.Drawing.Color.Red
Me.Label3.Location = New System.Drawing.Point(80, 40)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(128, 32)
Me.Label3.TabIndex = 11
Me.Label3.Text = "Computer"
'
'Label2
'
Me.Label2.Font = New System.Drawing.Font("Comic Sans MS", 15.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label2.ForeColor = System.Drawing.Color.Red
Me.Label2.Location = New System.Drawing.Point(16, 40)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(52, 32)
Me.Label2.TabIndex = 10
Me.Label2.Text = "Tuo"
'
'TextBox3
'
Me.TextBox3.Enabled = False
Me.TextBox3.Location = New System.Drawing.Point(104, 72)
Me.TextBox3.Name = "TextBox3"
Me.TextBox3.Size = New System.Drawing.Size(64, 34)
Me.TextBox3.TabIndex = 1
Me.TextBox3.Text = ""
'
'TextBox2
'
Me.TextBox2.Enabled = False
Me.TextBox2.Location = New System.Drawing.Point(16, 72)
Me.TextBox2.Name = "TextBox2"
Me.TextBox2.Size = New System.Drawing.Size(64, 34)
Me.TextBox2.TabIndex = 0
Me.TextBox2.Text = ""
'
'PictureBox6
'
Me.PictureBox6.Image = CType(resources.GetObject("PictureBox6.Image"), System.Drawing.Image)
Me.PictureBox6.Location = New System.Drawing.Point(456, 384)
Me.PictureBox6.Name = "PictureBox6"
Me.PictureBox6.Size = New System.Drawing.Size(168, 80)
Me.PictureBox6.TabIndex = 11
Me.PictureBox6.TabStop = False
'
'Label4
'
Me.Label4.Font = New System.Drawing.Font("Verdana", 15.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label4.Location = New System.Drawing.Point(496, 376)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(168, 24)
Me.Label4.TabIndex = 12
Me.Label4.Text = "Reset"
'
'Label5
'
Me.Label5.Font = New System.Drawing.Font("Arial Rounded MT Bold", 15.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label5.ForeColor = System.Drawing.Color.Gold
Me.Label5.Location = New System.Drawing.Point(296, 496)
Me.Label5.Name = "Label5"
Me.Label5.Size = New System.Drawing.Size(328, 32)
Me.Label5.TabIndex = 13
Me.Label5.Text = "By «•K®‡S']['売ºº5•»™"
'
'Form1
'
Me.AutoScaleBaseSize = New System.Drawing.Size(6, 13)
Me.BackColor = System.Drawing.SystemColors.ActiveCaptionText
Me.ClientSize = New System.Drawing.Size(648, 542)
Me.Controls.Add(Me.Label5)
Me.Controls.Add(Me.Label4)
Me.Controls.Add(Me.PictureBox6)
Me.Controls.Add(Me.GroupBox1)
Me.Controls.Add(Me.Label1)
Me.Controls.Add(Me.TextBox1)
Me.Controls.Add(Me.o3)
Me.Controls.Add(Me.o2)
Me.Controls.Add(Me.o1)
Me.Controls.Add(Me.PictureBox5)
Me.Controls.Add(Me.PictureBox4)
Me.Controls.Add(Me.PictureBox3)
Me.Controls.Add(Me.PictureBox2)
Me.Controls.Add(Me.PictureBox1)
Me.Font = New System.Drawing.Font("SimSun", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
Me.Name = "Form1"
Me.Text = "MORRA CINESE By «•K®‡S']['売ºº5•»™"
Me.GroupBox1.ResumeLayout(False)
Me.ResumeLayout(False)
End Sub
#End Region
' Code Scritto Da Krystal
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Randomize()
End Sub
Private Sub PictureBox5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox5.Click
Dim a As Integer
Dim carta, forbice, sasso As String
a = (Rnd() * 2)
TextBox1.Text = a
Select Case TextBox1.Text
Case 0
TextBox1.Text = "Carta"
Case 1
TextBox1.Text = "Forbice"
Case 2
TextBox1.Text = "Sasso"
End Select
' Caso della carta
If o1.Checked = True And TextBox1.Text = "Sasso" Then
MsgBox(" Complimenti hai vinto! ")
TextBox2.Text = Val(TextBox2.Text) + 1
ElseIf o1.Checked And TextBox1.Text = "Carta" Then
MsgBox("Avete Pareggiato!!")
ElseIf o1.Checked And TextBox1.Text = "Forbice" Then
MsgBox("Ha vinto il computer!")
TextBox3.Text = Val(TextBox3.Text) + 1
' Caso della forbice
ElseIf o2.Checked = True And TextBox1.Text = "Sasso" Then
MsgBox("Ha vinto il computer!")
TextBox3.Text = Val(TextBox3.Text) + 1
ElseIf o2.Checked And TextBox1.Text = "Carta" Then
MsgBox(" Complimenti hai vinto! ")
TextBox2.Text = Val(TextBox2.Text) + 1
ElseIf o2.Checked And TextBox1.Text = "Forbice" Then
MsgBox("Avete Pareggiato!!")
'Caso Dela sasso
ElseIf o3.Checked = True And TextBox1.Text = "Sasso" Then
MsgBox("Avete Pareggiato!!")
ElseIf o3.Checked And TextBox1.Text = "Carta" Then
MsgBox("Ha vinto il computer!")
TextBox3.Text = Val(TextBox3.Text) + 1
ElseIf o3.Checked And TextBox1.Text = "Forbice" Then
MsgBox(" Complimenti hai vinto! ")
TextBox2.Text = Val(TextBox2.Text) + 1
End If
If o1.Checked = False And o2.Checked = False And o3.Checked = False Then
MsgBox(" Devi fare la tua scelta!")
End If
End Sub
Private Sub PictureBox6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox6.Click
Dim a
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
o1.Checked = False
o2.Checked = False
o3.Checked = False
a = ""
End Sub
End Class