Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
ZoomPanel and Scrollbars
posted

Hi,

I m using UltraZoomPanel inside simple Form (https://imgur.com/NblEtSR).

Zooming is working well but when I zoom in, UltraZoomPanel makes appear scrolbars. Whereas all my controls fit inside (https://imgur.com/h01eZZI).

Then, if I zoom out to get back my zoomfactor to 1, scrollbars are still visible (https://imgur.com/VGKaTTi).

How can I hide this scrollbars?

Thank you

Parents
No Data
Reply
  • 0
    Offline posted

            If UltraZoomPanel1.ZoomProperties.ZoomFactor = 1 Then
                UltraGrid1.Dock = DockStyle.Fill
            Else
                UltraGrid1.Dock = DockStyle.None
            End If

            'Scroll Off 

            DirectCast(UltraZoomPanel1.ClientArea, System.Windows.Forms.Control).Dock = DockStyle.Fill

Children
No Data