Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Moving objects (buttons, text labels, etc.)
#1
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
#2
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.
#3
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
#4
Okay,
nice

Requesting for a lock.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Visual Basic Guide - Buttons Death Demise 9 5,310 03-09-2012, 06:46 PM
Last Post: BreShiE
  TextBox2.Text | Transfer Text to ListBox Die 3 2,677 01-02-2012, 06:09 PM
Last Post: AceInfinity
  Text Converter. Turn your text upside down! Red X 29 8,728 08-01-2011, 07:46 AM
Last Post: Red X
  Get Cool Custom Buttons [VB.NET] [Source] Vorfin 30 11,860 04-02-2011, 01:49 PM
Last Post: h4yr0
  Make Buttons to Change Visibility? [VB.NET] Vundo 2 3,758 09-14-2010, 08:38 PM
Last Post: -BoodyE-

Forum Jump:


Users browsing this thread: 1 Guest(s)