954,549 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

getting the coordinates of a object

guys I'm just new with visual basic. I would like to ask a question regarding coordinates.. Suppose I have object lets say a button how do i get the coordinates of the button in the form? also I want to button to move given a particular path, example if i draw a vertical line, the button will follow the line and move vertically. how do i get the coordinates of starting and endpoints of the line? thanks...hope to hear from you soon

herms14
Light Poster
47 posts since Mar 2008
Reputation Points: 10
Solved Threads: 0
 

>how do i get the coordinates of the button in the form?
Use Location Property of button control.

>how do i get the coordinates of starting and endpoints of the line?
Handles MouseDown, MouseMove, and MouseUp events of a Form control.

__avd
Posting Genius (adatapost)
Moderator
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
 

>how do i get the coordinates of the button in the form? Use Location Property of button control.

>how do i get the coordinates of starting and endpoints of the line? Handles MouseDown, MouseMove, and MouseUp events of a Form control.

how do i exactly get the location of a button using the Location property? how do i implement this method?

herms14
Light Poster
47 posts since Mar 2008
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You