Public Class Form1
Inherits System.Windows.Forms.Form
Dim ora As String
#Region " Codice generato da Progettazione Windows Form "
Public Sub New()
MyBase.New()
'Chiamata richiesta da Progettazione Windows Form.
InitializeComponent()
'Aggiungere le eventuali istruzioni di inizializzazione dopo la chiamata a InitializeComponent()
End Sub
'Form esegue l'override del metodo Dispose per pulire l'elenco dei componenti.
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
'Richiesto da Progettazione Windows Form
Private components As System.ComponentModel.IContainer
'NOTA: la procedura che segue è richiesta da Progettazione Windows Form.
'Può essere modificata in Progettazione Windows Form.
'Non modificarla nell'editor del codice.
Friend WithEvents Button1 As System.Windows.Forms.Button
Friend WithEvents ProgressBar1 As System.Windows.Forms.ProgressBar
Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
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 Label4 As System.Windows.Forms.Label
Friend WithEvents Button2 As System.Windows.Forms.Button
Friend WithEvents Button3 As System.Windows.Forms.Button
Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
Friend WithEvents Label5 As System.Windows.Forms.Label
Friend WithEvents Label6 As System.Windows.Forms.Label
Friend WithEvents Label7 As System.Windows.Forms.Label
Friend WithEvents Label8 As System.Windows.Forms.Label
Friend WithEvents GroupBox3 As System.Windows.Forms.GroupBox
Friend WithEvents Label9 As System.Windows.Forms.Label
Friend WithEvents Label10 As System.Windows.Forms.Label
Friend WithEvents Label11 As System.Windows.Forms.Label
Friend WithEvents Label12 As System.Windows.Forms.Label
Friend WithEvents Button4 As System.Windows.Forms.Button
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Form1))
Me.Button1 = New System.Windows.Forms.Button
Me.ProgressBar1 = New System.Windows.Forms.ProgressBar
Me.TextBox1 = New System.Windows.Forms.TextBox
Me.GroupBox1 = New System.Windows.Forms.GroupBox
Me.Label4 = New System.Windows.Forms.Label
Me.Label3 = New System.Windows.Forms.Label
Me.Label2 = New System.Windows.Forms.Label
Me.Label1 = New System.Windows.Forms.Label
Me.Button2 = New System.Windows.Forms.Button
Me.Button3 = New System.Windows.Forms.Button
Me.GroupBox2 = New System.Windows.Forms.GroupBox
Me.Label5 = New System.Windows.Forms.Label
Me.Label6 = New System.Windows.Forms.Label
Me.Label7 = New System.Windows.Forms.Label
Me.Label8 = New System.Windows.Forms.Label
Me.GroupBox3 = New System.Windows.Forms.GroupBox
Me.Label9 = New System.Windows.Forms.Label
Me.Label10 = New System.Windows.Forms.Label
Me.Label11 = New System.Windows.Forms.Label
Me.Label12 = New System.Windows.Forms.Label
Me.Button4 = New System.Windows.Forms.Button
Me.GroupBox1.SuspendLayout()
Me.GroupBox2.SuspendLayout()
Me.GroupBox3.SuspendLayout()
Me.SuspendLayout()
'
'Button1
'
Me.Button1.FlatStyle = System.Windows.Forms.FlatStyle.System
Me.Button1.Location = New System.Drawing.Point(200, 32)
Me.Button1.Name = "Button1"
Me.Button1.Size = New System.Drawing.Size(80, 23)
Me.Button1.TabIndex = 0
Me.Button1.Text = "Livello 1"
'
'ProgressBar1
'
Me.ProgressBar1.Location = New System.Drawing.Point(8, 8)
Me.ProgressBar1.Maximum = 12001
Me.ProgressBar1.Name = "ProgressBar1"
Me.ProgressBar1.Size = New System.Drawing.Size(624, 16)
Me.ProgressBar1.Step = 1
Me.ProgressBar1.TabIndex = 1
'
'TextBox1
'
Me.TextBox1.Location = New System.Drawing.Point(16, 32)
Me.TextBox1.MaxLength = 999999
Me.TextBox1.Multiline = True
Me.TextBox1.Name = "TextBox1"
Me.TextBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical
Me.TextBox1.Size = New System.Drawing.Size(8, 8)
Me.TextBox1.TabIndex = 2
Me.TextBox1.Text = ""
Me.TextBox1.Visible = False
'
'GroupBox1
'
Me.GroupBox1.Controls.Add(Me.Label4)
Me.GroupBox1.Controls.Add(Me.Label3)
Me.GroupBox1.Controls.Add(Me.Label2)
Me.GroupBox1.Controls.Add(Me.Label1)
Me.GroupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System
Me.GroupBox1.Location = New System.Drawing.Point(8, 56)
Me.GroupBox1.Name = "GroupBox1"
Me.GroupBox1.Size = New System.Drawing.Size(208, 56)
Me.GroupBox1.TabIndex = 3
Me.GroupBox1.TabStop = False
Me.GroupBox1.Text = "Resoconto 1° Livello"
'
'Label4
'
Me.Label4.Location = New System.Drawing.Point(112, 32)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(88, 16)
Me.Label4.TabIndex = 3
Me.Label4.TextAlign = System.Drawing.ContentAlignment.TopCenter
'
'Label3
'
Me.Label3.Location = New System.Drawing.Point(8, 32)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(104, 16)
Me.Label3.TabIndex = 2
Me.Label3.Text = "Test Terminato alle"
'
'Label2
'
Me.Label2.Location = New System.Drawing.Point(112, 16)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(88, 16)
Me.Label2.TabIndex = 1
Me.Label2.TextAlign = System.Drawing.ContentAlignment.TopCenter
'
'Label1
'
Me.Label1.Location = New System.Drawing.Point(8, 16)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(88, 16)
Me.Label1.TabIndex = 0
Me.Label1.Text = "Test iniziato alle"
'
'Button2
'
Me.Button2.Enabled = False
Me.Button2.FlatStyle = System.Windows.Forms.FlatStyle.System
Me.Button2.Location = New System.Drawing.Point(280, 32)
Me.Button2.Name = "Button2"
Me.Button2.Size = New System.Drawing.Size(80, 23)
Me.Button2.TabIndex = 4
Me.Button2.Text = "Livello 2"
'
'Button3
'
Me.Button3.Enabled = False
Me.Button3.FlatStyle = System.Windows.Forms.FlatStyle.System
Me.Button3.Location = New System.Drawing.Point(360, 32)
Me.Button3.Name = "Button3"
Me.Button3.Size = New System.Drawing.Size(80, 23)
Me.Button3.TabIndex = 5
Me.Button3.Text = "Livello 3"
'
'GroupBox2
'
Me.GroupBox2.Controls.Add(Me.Label5)
Me.GroupBox2.Controls.Add(Me.Label6)
Me.GroupBox2.Controls.Add(Me.Label7)
Me.GroupBox2.Controls.Add(Me.Label8)
Me.GroupBox2.FlatStyle = System.Windows.Forms.FlatStyle.System
Me.GroupBox2.Location = New System.Drawing.Point(216, 56)
Me.GroupBox2.Name = "GroupBox2"
Me.GroupBox2.Size = New System.Drawing.Size(208, 56)
Me.GroupBox2.TabIndex = 6
Me.GroupBox2.TabStop = False
Me.GroupBox2.Text = "Resoconto 2° Livello"
'
'Label5
'
Me.Label5.Location = New System.Drawing.Point(112, 32)
Me.Label5.Name = "Label5"
Me.Label5.Size = New System.Drawing.Size(88, 16)
Me.Label5.TabIndex = 3
Me.Label5.TextAlign = System.Drawing.ContentAlignment.TopCenter
'
'Label6
'
Me.Label6.Location = New System.Drawing.Point(8, 32)
Me.Label6.Name = "Label6"
Me.Label6.Size = New System.Drawing.Size(104, 16)
Me.Label6.TabIndex = 2
Me.Label6.Text = "Test Terminato alle"
'
'Label7
'
Me.Label7.Location = New System.Drawing.Point(112, 16)
Me.Label7.Name = "Label7"
Me.Label7.Size = New System.Drawing.Size(88, 16)
Me.Label7.TabIndex = 1
Me.Label7.TextAlign = System.Drawing.ContentAlignment.TopCenter
'
'Label8
'
Me.Label8.Location = New System.Drawing.Point(8, 16)
Me.Label8.Name = "Label8"
Me.Label8.Size = New System.Drawing.Size(88, 16)
Me.Label8.TabIndex = 0
Me.Label8.Text = "Test iniziato alle"
'
'GroupBox3
'
Me.GroupBox3.Controls.Add(Me.Label9)
Me.GroupBox3.Controls.Add(Me.Label10)
Me.GroupBox3.Controls.Add(Me.Label11)
Me.GroupBox3.Controls.Add(Me.Label12)
Me.GroupBox3.FlatStyle = System.Windows.Forms.FlatStyle.System
Me.GroupBox3.Location = New System.Drawing.Point(424, 56)
Me.GroupBox3.Name = "GroupBox3"
Me.GroupBox3.Size = New System.Drawing.Size(208, 56)
Me.GroupBox3.TabIndex = 7
Me.GroupBox3.TabStop = False
Me.GroupBox3.Text = "Resoconto 3° Livello"
'
'Label9
'
Me.Label9.Location = New System.Drawing.Point(112, 32)
Me.Label9.Name = "Label9"
Me.Label9.Size = New System.Drawing.Size(88, 16)
Me.Label9.TabIndex = 3
Me.Label9.TextAlign = System.Drawing.ContentAlignment.TopCenter
'
'Label10
'
Me.Label10.Location = New System.Drawing.Point(8, 32)
Me.Label10.Name = "Label10"
Me.Label10.Size = New System.Drawing.Size(104, 16)
Me.Label10.TabIndex = 2
Me.Label10.Text = "Test Terminato alle"
'
'Label11
'
Me.Label11.Location = New System.Drawing.Point(112, 16)
Me.Label11.Name = "Label11"
Me.Label11.Size = New System.Drawing.Size(88, 16)
Me.Label11.TabIndex = 1
Me.Label11.TextAlign = System.Drawing.ContentAlignment.TopCenter
'
'Label12
'
Me.Label12.Location = New System.Drawing.Point(8, 16)
Me.Label12.Name = "Label12"
Me.Label12.Size = New System.Drawing.Size(88, 16)
Me.Label12.TabIndex = 0
Me.Label12.Text = "Test iniziato alle"
'
'Button4
'
Me.Button4.FlatStyle = System.Windows.Forms.FlatStyle.System
Me.Button4.Location = New System.Drawing.Point(520, 32)
Me.Button4.Name = "Button4"
Me.Button4.Size = New System.Drawing.Size(112, 23)
Me.Button4.TabIndex = 8
Me.Button4.Text = "Vedi il Mio Punteggio"
'
'Form1
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.ClientSize = New System.Drawing.Size(638, 116)
Me.Controls.Add(Me.Button4)
Me.Controls.Add(Me.GroupBox3)
Me.Controls.Add(Me.GroupBox2)
Me.Controls.Add(Me.Button3)
Me.Controls.Add(Me.Button2)
Me.Controls.Add(Me.GroupBox1)
Me.Controls.Add(Me.TextBox1)
Me.Controls.Add(Me.ProgressBar1)
Me.Controls.Add(Me.Button1)
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D
Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
Me.MaximizeBox = False
Me.Name = "Form1"
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
Me.Text = "BenchMark CPU By GoLDBeRG"
Me.GroupBox1.ResumeLayout(False)
Me.GroupBox2.ResumeLayout(False)
Me.GroupBox3.ResumeLayout(False)
Me.ResumeLayout(False)
End Sub
#End Region
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
ora = (TimeOfDay)
Dim a As Integer
For a = 1 To 12000
TextBox1.Text = TextBox1.Text & Rnd()
ProgressBar1.Value = ProgressBar1.Value + 1
Next a
Label2.Text = ora
Label4.Text = (TimeOfDay)
ProgressBar1.Value = 0
Button2.Enabled = True
Button1.Enabled = False
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
ora = (TimeOfDay)
Dim a As Integer
For a = 1 To 12000
TextBox1.Text = TextBox1.Text & Rnd()
ProgressBar1.Value = ProgressBar1.Value + 1
Next a
Label7.Text = ora
Label5.Text = (TimeOfDay)
ProgressBar1.Value = 0
Button3.Enabled = True
Button1.Enabled = False
Button2.Enabled = False
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
ora = (TimeOfDay)
Dim a As Integer
For a = 1 To 12000
TextBox1.Text = TextBox1.Text & Rnd()
ProgressBar1.Value = ProgressBar1.Value + 1
Next a
Label11.Text = ora
Label9.Text = (TimeOfDay)
ProgressBar1.Value = 0
Button1.Enabled = False
Button2.Enabled = False
Button3.Enabled = False
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
Dim form2 As New Form2
form2.ShowDialog()
End Sub
End Class
Public Class Main
Shared Sub Main()
Application.EnableVisualStyles()
Application.Run(New Form1)
End Sub
End Class