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 : Nov 16th 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 ?

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











Article ID: Published Date: Last Revised Date: Platform: Control:
6642 04/14/2016 04/14/2016 WinForms XPTaskbar
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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