My goal is write a print to console method for an object. The method does not require a parameter, but uses nonetheless that object. Calling it would look like:
Dim oBHKW As cBHKW
oBHKW.print()
But in the cBHKW class, how can I use the oBHKW object?
I tried the following without success.
Public Sub print(ByVal sender As Object)
Console.WriteLine(sender.ToString)
End Sub
Have a look at Me Keyword
So something like