TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Emerogork
NA
17
0
Moving an object in VB 2008
Nov 20 2009 5:57 PM
Using a Button, one can program changes in size by using btnChange.width = 500. I would like to use a similar line to change the location of a button. The location property has an X and Y value but I cannot seem to program it to change the button position. I tried something like btnChange.Location.Y = 200 but the system tells me that "the expression is a value and therefore cannot be the target of a assignment. Does it make sense that the size can be the target but location cannot?
I have used lines like: btnMoveMe.Location = (200, 200) and btnMoveMe.Location.Y = 200 but the system tells me that the expression is a value and cannot be the target of an expression.
Reply
Answers (
3
)
pass valiable to parent control
Pick a row in DataGridView in C#