You are on page 1of 1

codes for form1

*********************
Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button1.Click
Dim OBJ As New Form2
TextBox1.Text = Val(0) + Val(1)
OBJ.StringPass = TextBox1.Text
OBJ.Show()
Me.Hide()
End Sub
End Class

**********************
codes for form2

Public Class Form2


Public Property StringPass As String
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
TextBox1.Text = StringPass
End Sub
End Class

Public Class form1

Dim candidate1 As New Integer


Dim candidate2 As New Integer
Dim candidate3 As New Integer
Dim candidate4 As New Integer
Dim candidate5 As New Integer
Dim candidate6 As New Integer
Dim candidate7 As New Integer
Dim candidate8 As New Integer
Dim candidate9 As New Integer
Dim candidate10 As New Integer
Dim candidate11 As New Integer
Dim candidate12 As New Integer

Dim candidate13 As New Integer


Dim candidate14 As New Integer
Dim candidate15 As New Integer
Dim candidate16 As New Integer
Dim candidate17 As New Integer
Dim candidate18 As New Integer
Dim candidate19 As New Integer
Dim candidate20 As New Integer
Dim candidate21 As New Integer
Dim candidate22 As New Integer
Dim candidate23 As New Integer
Dim candidate24 As New Integer

You might also like