Me keyword

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In Visual Basic .NET, does the Me keyword always refer to the current form?
 
Hi Jim

It refers to the current object. So if you are in a form then it is that
form. If you are in a class then it is that instance of the class. It is the
same as the C++/C# 'this'.

HTH

Charles


Jim said:
In Visual Basic .NET, does the Me keyword always refer to the current
form?
 
* =?Utf-8?B?Smlt?= said:
In Visual Basic .NET, does the Me keyword always refer to the current form?

In addition to the other reply:

If you need a reference to the active form, use 'Form.ActiveForm'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top