To refer to the current instance of a class or structure, use the Me keyword. Me provides a way to refer to the specific instance in which the code is currently executing. It is particularly useful for passing information about the currently executing instance.
The Me keyword is also used as a modifier of the first parameter of an extension method.
You cannot use Me with static method functions because static methods do not belong to an object instance. If you try, you'll get an error.
Syntax Example:
Sub SetBackgroundColor(FormName As Form) //FormName.BackColor = ...some color End Sub
The following are practice certification questions with answers highlighted. These questions were prepared by Mike Prestwood and are intended to stress an important aspect of this KB post. All our practice questions are intended to prepare you generally for passing any certification test as well as prepare you for professional work.