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
 
Back
Top