I have TabPageControl and some TabPages inside it. I need to put the big image into the tabpage and change it every 30 sec and I want to see just a part of the image. So I need scrolling. But I have the next trouble: when i slide the scroll bars the image vanishes or smears in 1 black stripe. I’ve googled this trouble but found no information.
Share
I would suggest that you use a PictureBox for this.
Set the TabPage.AutoScroll property to true, this will cause the tab page to show scrollbars if the content is larger than the tab page.
Set the PictureBox.SizeMode to PictureBoxSizeMode.AutoSize, this will make the Picture box control size it self to the size of the loaded image. If the picture box is larger than the tab page it is on, the tab page will show the necessary scrollbars and they should work as expected.
You can then draw on the picture box, if required. You would normally do this drawing in the
Paintevent of the picture box.