Using two picture boxes, detecting mouse position on 1 and colour on 2

02-16-2002, 11:27 PM
ive made a program that when you click on the picture1 box it shows you the colour on picture2 box

eg a=getpixel(picture2.hdc,picture1mousex,picture1mousey)
the problem is when i either move an object or make picture2 box not visible it just keeps outputting -1 instead of the colour

heres the program i made..attached

02-17-2002, 04:38 AM
turn pic 2's auto redraw on

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum