getting the coordinates of a object

Please support our VB.NET advertiser: Intel Parallel Studio Home
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
27 Days Ago
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,639
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: 472
Moderator
adatapost's Avatar
adatapost adatapost is offline Offline
Posting Maven
 
0
  #2
27 Days Ago
>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.
Failure is not fatal, but failure to change might be. - John Wooden
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
26 Days Ago
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:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC