Page 1 of 1

Trading Chart: Remove Horizontal Scroll Bar Dotted Line When In Focus?

Posted: Wed Oct 28, 2020 12:03 am
by JeffFerguson
The horizontal scroll bar associated with a TradingChart instance has a dotted line around it when the scroll bar has the focus (see attached image). Is there any way to get rid of that?

Re: Trading Chart: Remove Horizontal Scroll Bar Dotted Line When In Focus?

Posted: Wed Oct 28, 2020 7:18 am
by Arction_LasseP
Hello Jeff,

The dotted line around the scrollbar marks that the bar has focus, and keys controls can be used to move it. Therefore, the correct options can be found KeyControlFocus property. There is no option to turn off the line, but you can change its color to transparent.

Code: Select all

horizontalScrollBar.KeyControlFocus.Color = Color.FromArgb(0, 0, 0, 0);
Hope this helps.
Best regards,
Lasse