944,218 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 838
  • VB.NET RSS
Nov 9th, 2009
0

getting the coordinates of a object

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
herms14 is offline Offline
46 posts
since Mar 2008
Nov 9th, 2009
0
Re: getting the coordinates of a object
>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.
Moderator
Reputation Points: 2136
Solved Threads: 1228
Posting Genius
adatapost is offline Offline
6,527 posts
since Oct 2008
Nov 10th, 2009
0
Re: getting the coordinates of a object
Click to Expand / Collapse  Quote originally posted by adatapost ...
>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?
Reputation Points: 10
Solved Threads: 0
Light Poster
herms14 is offline Offline
46 posts
since Mar 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Save And retrieve Picture in Access Database In Vb.net
Next Thread in VB.NET Forum Timeline: How do i deploy my vb program to a cd?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC