0
Your second form will have all of your details. You'll use properties to display (or further process) the data:
public property empName as string
get
return m_EmpName ' a global definition for the second form
end get
set (value as string)
m_EmpName = value
txtEmpName.Text = m_EmpName ' txtEmpName is the name of your textbox
end set
end property
Do this for each variable on the second form. In your first form, in the button click event:
dim frm = new frmSecondForm ' the name of your second form is frmSecondForm
frm.EmpName = employee(0 , 0) ' this is just an example for Dave Keith
frm.xxxx = employee(0, 1) ' continue with the array for each property
frm.ShowDialog ' this displays the form
There are many other ways to solve the problem depending on your circumstances, but this will get the job done.
Incidentally, it is considered bad practice to define a variable as object. There are circumstances where it is unavoidable, but in this case you probably should define a structure:
public Employee as Structure
dim empName as string
dim age as integer
dim .....
end structure
you could then define your array as a single entity:
dim arrayyEmp as Employee()
