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

Recommended Answers

All 2 Replies

>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 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?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.