I have two Classes in my proj and I am trying to call a funct in Class2 from Class1's Form1_Load. How can I do this, below is a sample of my code.
Public Class1
Inherits System.Windows.Forms.Form
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
printRpt()
End Sub
Public Class2
public functionprintRpt()
''Do my printing
end function
end Class
Public Class1
Inherits System.Windows.Forms.Form
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
printRpt()
End Sub
Public Class2
public functionprintRpt()
''Do my printing
end function
end Class