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:
However, I get the error message, “Expression is a value and therefore cannot be the target of an assignment”Code:Me.btnEnter.Location.Y = 474
If I now code as follows, I get the error message, “Property access must assign to the property or use its value”
The errors appear contradictory. Just to check, I wrote the following code:Code:Me.btnEnter.Location.Y
And when run I received the correct answer of 535.Code:X = Me.btnEnter.Location.Y
What is happening? What am I missing?
Regards,
John




Reply With Quote