Hi,
I am creating a program that has two forms. The first form lets you select the employee you want to make changes to and passes the employees record number to another form. The other form looks up that record number and displays the information for that employee.
I can do this easily with a module but would like to use a class instead(since they are all the rage nowadays ). The only thing is that I can not access the class outside of the first form. I can create a new instance on the 2nd form but that will erase the value set by the first form. Any ideas about how to make this class global to all forms? My class code is below. Thanks in advance.
============================================================
I am creating a program that has two forms. The first form lets you select the employee you want to make changes to and passes the employees record number to another form. The other form looks up that record number and displays the information for that employee.
I can do this easily with a module but would like to use a class instead(since they are all the rage nowadays ). The only thing is that I can not access the class outside of the first form. I can create a new instance on the 2nd form but that will erase the value set by the first form. Any ideas about how to make this class global to all forms? My class code is below. Thanks in advance.
============================================================
Code:
Class RecordNumberBuffer
Private m_recordNumber As Integer
Public Property RecordNumber() As Integer
Get
Return m_recordNumber
End Get
Set(ByVal Value As Integer)
m_recordNumber = Value
End Set
End Property
End Class