|
-
Jul 26th, 2000, 08:23 PM
#1
Thread Starter
New Member
The object is moving anywhere. It's position is not fixed.
How can i get it's xy-coordinate?
MyRabit
MCSE+Internet,MCDBA
-
Jul 26th, 2000, 08:37 PM
#2
Fanatic Member
How about Left and Top properties? (Left=x coordinate; Top=y coordinate)
-
Jul 26th, 2000, 08:58 PM
#3
Hyperactive Member
try this
to get its coordinates try
picture1.currentX = X
picture1.currentY = Y
I hope I got that right
Matt 
-
Jul 27th, 2000, 09:05 PM
#4
Thread Starter
New Member
I am sorry,mybe i did not state it clearly.
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.
MyRabit
MCSE+Internet,MCDBA
-
Jul 27th, 2000, 10:47 PM
#5
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)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|