Dear All,

I cannot understand the reason for what is happening. I am using VB.Net 2008 Express.

I am trying to move a button on a form, the button status is unlocked. The code that I want to use is:

Code:
Me.btnEnter.Location.Y = 474
However, I get the error message, “Expression is a value and therefore cannot be the target of an assignment”

If I now code as follows, I get the error message, “Property access must assign to the property or use its value”

Code:
Me.btnEnter.Location.Y
The errors appear contradictory. Just to check, I wrote the following code:

Code:
X = Me.btnEnter.Location.Y
And when run I received the correct answer of 535.

What is happening? What am I missing?

Regards,

John