Support Forums

Full Version: Moving objects (buttons, text labels, etc.)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello i'm working on one project but i can't do a command which could move any object. When i tried to use command ex.:

Code:
button.Location.X = 53

I am getting error:

Code:
Expression is a value and therefore cannot be the target of an assignment.

Any help? thanks in advance Smile
Have you tried looking it up on Google.com ?
That is all i can think of, thought i would post since no one else has.
I found it! Yeye There need to use:
Code:
Dim loc as Point
loc = new point (button.location.x, button.location.y)
button.location = loc

loc is location where will be object and between () there is a new location.
Maybie someone could have a good use of it Smile Thanks anyway Blackhat
Okay,
nice

Requesting for a lock.