I am writing a program to calculate payrolls for employees. What I need to know is how to get payroll information from variables from one form to another.
The form I need the variable data from is called Timesheet and the form I need the data for is called PayRoll.
When I use the following code:
lblName.Text = TimeSheet.EmpName
I get the error that EmpName is not a member of EmployeeInfo.Timesheet (the project file the Timesheet is located) after I generated a class for it.
Any ideas to link these forms?
publicproperties in your class.Public EmpName As String Public Supervisor As String Public Period As String Public Client1 As String Public Client2 As String Public Contract1 As String Public Contract2 As String Public Project1 As String Public Project2 As String Public BillLevel As String Public BillLevel2 As String Public TotalHours As Double Public PTO As Double Private Sub frmPayroll_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load EmpName = txtEmpName.Text Supervisor = txtSupervisor.Text