dragging a picturebox over another picturebox.
Posted on 2009-04-06
I am developing a VC++ application and I am trying to make a circle image over a map image to be draggable by mouse. I did this by first creating a picturebox which has its image set to a map and the circle as anothe picturebox (PNG) which has transparency.
I am setting the first picturebox as the parent of the second picturebox.
I am making the image draggable by using the mousedown events and mouse move events to relocate the circle picturebox to the mouse pointer position.
The problem is, when I do this, the transparent areas of the circle image look messy (flickering) and the circle image is looking strange and not moving smoothly. Am I doing anything wrong? is there a better way to achieve this in VC++ dot net?