I'm developing a touchscreen application, and today's task is to make a custom slider control made up of a panel and a picturebox who's parent is said panel.
The picturebox is moved up and down the panel based on the cursor location during the .MouseMove event. That part, works a treat. Problem is, if the panel is clicked (which can happen inadvertently with a touchscreen), the picturebox will slide down to the cursor's location, then snap back to it's original location and do this over and over...giving quite an ugly affect.
I can't see how my code makes it slide and go back repeatedly, so I was thinking the easiest way out is to ignore the click event.
Any ideas? I have attached the project so you see exactly what I mean