Visual studio trackbar ticks

时间:2018-06-14 23:12:36

标签: trackbar

我已动态设置了一个轨迹栏并设置了属性以在两侧显示刻度线但刻度标记不可见。以下是设置并从https://msdn.microsoft.com/en-us/library/system.windows.forms.trackbar.tickstyle(v=vs.110).aspx引用 我也改变了颜色,假设刻度与背景颜色相同,但没有运气。

        TrackBar_Editor.SmallChange = 1
    TrackBar_Editor.Minimum = 0

    TrackBar_Editor.TickStyle = TickStyle.Both

    ' Set the minimum and maximum number of ticks.
    TrackBar_Editor.Maximum = 100

    TrackBar_Editor.TickFrequency = 10

0 个答案:

没有答案