scroll bar issue in panel control

resumurof

New member
Joined
Aug 27, 2015
Messages
1
Programming Experience
5-10
HI,
I have a panel where I will be displaying image in that control, and I have added scroll facility to it, when I draw something on it, im calling invalidate to update the image, which is making scroll bar to move to the beginning of the position.

Let me know if you have any idea.
 
Drawing Images directly on a Panel is probably not the best idea. Is there any reason that you can't add PictureBox controls to the Panel, maybe even using a TableLayoutPanel or FlowLayoutPanel.
 
Back
Top Bottom