portroe,
By having a reference to an object of that class in the other procedure!
Either by creating the object in that procedure, or more then likely,
passing the object as a parameter.
Public Class Form1
Inherits System.Windows.Forms.Form
' other stuff omitted
Private Sub Command1_Click(...)
Dim joe As New Employee
MessageBox.Show(joe.ToString())
DisplayMessage(joe)
End Sub
End Class
Public Module MessageModule
Public Sub DisplayMessage(ByVal anEmployee As Employee)
MessageBox.Show(anEmployee.ToString())
End Sub
End Module
Remember that objects created from Classes are reference types, so passing
the object ByVal passes a copy of the reference to the object, there is only
a single actual object on the heap.
Hope this helps
Jay