The object is moving anywhere. It's position is not fixed.
How can i get it's xy-coordinate?
Printable View
The object is moving anywhere. It's position is not fixed.
How can i get it's xy-coordinate?
How about Left and Top properties? (Left=x coordinate; Top=y coordinate)
to get its coordinates try
picture1.currentX = X
picture1.currentY = Y
I hope I got that right
I mean that the moving object is in an common application window that is not developped by me.So I can
not use the left and top properties as i deal with vb controls.
You mean, put another window inside yours?
Here is how to put a form inside another form.
It also works if you find the other window as well, not just forms.
Code:Declare Function SetParent Lib "user32" (ByVal hWndChild As Long, ByVal
hWndNewParent As Long) As Long
SetParent(Me.hWnd, Form1.hWnd)