Can someone explain this to me?
In Visual Studio 2010, create a VB.net Windows Forms application. Add 2 forms: Form1 and Form2. In Form1 Load, the event type is Form2.Close (). Now, if we look at the definition of a method, then Close () is not a static (general) method. So, how is it possible to compile or work at runtime.
Also, do the same in C # and Form2.Close (); not compiled.
What's happening? Why is this possible in VB.net and what actually happens when this line of code is executed?
source
share