getting the coordinates of a object

Please support our VB.NET advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Mar 2008
Posts: 43
Reputation: herms14 is an unknown quantity at this point 
Solved Threads: 0
herms14's Avatar
herms14 herms14 is offline Offline
Light Poster

getting the coordinates of a object

 
0
  #1
Nov 9th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,721
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 501
Moderator
adatapost's Avatar
adatapost adatapost is offline Offline
Posting Maven
 
0
  #2
Nov 9th, 2009
>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.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 43
Reputation: herms14 is an unknown quantity at this point 
Solved Threads: 0
herms14's Avatar
herms14 herms14 is offline Offline
Light Poster
 
0
  #3
Nov 10th, 2009
Originally Posted by adatapost View Post
>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?
Reply With Quote Quick reply to this message  
Reply

Message:




Views: 302 | Replies: 2
Thread Tools Search this Thread



Tag cloud for VB.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC