Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21131

[RESOLVED] How to get the location of a Form that has been moved from one Form to another

$
0
0
I hope I explain this in a understandable way.

I have 3 Forms, Form1, Form2, and Form3.

All measurements are in Pixels

All pictures and images are the same size, 30 x 30 except for the picturebox on Form3 which is much bigger

Form1 has a picturebox with a image in it (30 x 30).

Form2 has a picturebox with no image in it (30 x 30). Form2 is borderless and the Form is the same size as it's picturebox

Form3 has a picturebox (240 x 240) with a ImageControl in it (30 x 30) and the Image Control has an image that is the same as the picture in Form1.Picture1

When I mouse down on Form1.Picture1 I copy the picture from Form1.Picture1 to Form2.Picture1 in the MouseDown event....

then I show Form2....

then I position Form2 on top of Form1.Picture1 (exactly on top) and set Form2.Zorder 0 so it shows on top of Form1....

then I drag Form2 over to Form3 and somewhere on Form3.Picture1 I let go of the mouse and "drop" Form2 on top of Form3.Picture1.

Now the part I don't know how to do. I want to move the Image Control to the same position that Form2 is at.

Then I hide Form2 so that only the Image Control is visible on Form3.Picture1

Viewing all articles
Browse latest Browse all 21131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>