Hello, i know this is a very simple question but I am used to placing all of my code into one class and would now like to use multiple classes to help organize my code.
My questions is how can I call functions and subroutines in one class from another class.
Class1.vb contains:
Public Class ProcessSnap
Public Sub Process(ByVal iWidth As Integer, ByVal iHeight As Integer)
End Sub
End Class
In class2.vb i would like to execute the sub above. Does the code below accoplish this?
Dim Process As ProcessSnap = New ProcessSnap
Process.Process(iwidth, iHeight)
Thanks
Start Free Trial