Cyotek.Windows.Forms.ImageBox
Cyotek.Windows.Forms.ImageBox copied to clipboard
Problem when trying to hide Scrollbar
Hello,
Thank for your project. I got an issue. I tried to hide scrollbar (both vertical and horizontal bar) of ImageBox:
imageBox.AutoScroll = false;
imageBox.VerticalScroll.Visible = false;
imageBox.HorizontalScroll.Visible = false;
The problem occurred when I use zoom function. Zoomed image was run to above and disappear!

Hello,
Interesting! Thanks for the bug report. I took a quick look and can reproduce. Why would you be zooming the control and hiding the scrollbars plus preventing scrolling?
I'll take a look at this shortly and let you know when/if I have a solution.
Regards; Richard Moss
Hi Richard Moss,
I am looking forward to your solution. I am developing a simple viewer, and I see scrollbars occupy too much viewer space. Anyway, this is the best viewer control. Thank you for your project!
Best And Regards, Phap
Wheesh, this bug has been open a long time. There's a new branch which contains the source for a newer version of the ImageBox - it's not really compatible with the old version, hence the branch. I've rewrote scrolling from the ground up, getting rid of the nested inheritance and relying on a custom scroll implementation. This means you can now completely hide the scrollbars (via the VerticalScrollBarStyle and HorizontalScrollBarStyle properties) and everything Just Works.
Assuming you still use the ImageBox (or anyone else reading this issue I suppose!), it would be helpful to obtain some feedback before I start thinking about committing this to master. (I will move the existing 1.x code into a new branch so people can still use the older version if required).
Thanks! I have been using it for a long time. It's working well!
I'm pretty sure the last time I actually had time to work on this I spotted some issues so I still need to finalise the code... I'm still pretty busy with some other work right now, but I will make a concentrated effort to get this finished off once and for all as soon as I can.