I have a win form that has a panel control.
I load a tiff file and set it as the panel controls background image, and the measure the images size so that I can set the sroll bar parameters.
I the have button, which activate the drawing of a custom control, which issue the mousedown event to get the start location (top left) and the the mouse up event to get the end location (bottom right).
Using these variables I add a custom control to the panel which has had it's onpaint method overridden so that it's back color has an argb value of (125,255,255,0).
I'm the custom controls onouse move it make the control move it's top left settings by e.x and e.y etc...
When there is no background image in the panel the yellow box moves smoothly, but once I have a tiff file set to the panels background image the the is a terrible flicker as the custom control moves -- in the sense that the control cannot render as quick as I move the mouse. Thisis a problem as I want to useful e able to move the custom control smoothly - like when there is no image set for the panel background.
I have tried setting the forms double buffer to true and that does not help, neither do setting the customs control double buffer to true.
Any help will e greatly appreciated