Basic form problem

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

Guest

Hi,

I'm working through some documentation trying to learn vb.net and came
across the following code snippet:

form1.location = new point(200,200)

If I enter this within form1 code I get an error (and intellisense doesn't
offer the property) however if I enter 'me.location =....' everything works
fine.

Why does a reference to form1 fail in this instance?

Regards,
 
Simon,

"me" in VBNet means "my"

So when you are in a class you use "me"

I hope that this gives an idea

Cor
 
Thanks Cor - it makes sense now :)

Cor Ligthert said:
Simon,

"me" in VBNet means "my"

So when you are in a class you use "me"

I hope that this gives an idea

Cor
 

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