We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to avoid AutoScroll behavior in XPTaskBar when control is selected ?

Platform: WinForms |
Control: XPTaskbar |
Published Date: April 14, 2016 |
Last Revised Date: April 14, 2016

XPTaskBar is a container control, which displays Scrollbar when its child items bounds exceeds its bounds. As like in Panel, when a child control is selected in XPTaskBar it will be Auto scroll and bring the selected control into view. This behaviour can be resolved by following below steps.


  1. Need to create Custom control, which is derived from XPTaskBar.
  2. Need to override its ScrollToControl function and maintain its scroll position.


Following code examples demonstrates the same.





C:\Users\keerthana.jegannatha\Pictures\Camera Roll\Xptaskbar.png

Figure 1. Avoid XPTaskBar to scroll automatically with image.



Sample Links:


C#:How to avoid XPTaskBar to scroll automatically C#

VB: How to avoid XPTaskBar to scroll automatically VB











You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon