Drag a fill box over 2 image and it is highlighted?

chuawenching

Well-known member
Joined
Jul 26, 2003
Messages
66
Hi there.

My maths is kind of bad, and i really need to guides.

Just say i am allowed to create mouseevents in a picturebox.

There is a prefix image1 (x = 10, y = 10), image2 (x = 10, y = 7)

Now i will drag a bounding box over the picture1 and picture2 and makes it highlighted...

the main thing is how am i suppose to check the validation...

i know the concept but dont know how to code..

My concept:

when i drag a fillbox (i get source x1, y1 and destination x2, y2).

Hmm.. how do i calculate whether the x,y of image1 and x,y of image2 inside the picturebox?

Any help, please?

Thanks.

Regards,
Chua Wen Ching :p
 
Back
Top