Tag Archives: ScrollBar

Let the user select the ScrollBar maximum in C#

You would think that allowing the user to select the ScrollBar maximum would be the default behavior. Unfortunately, that’s not the case. The behavior of the VScrollBar and HScrollBar controls is largely determined by their Value, Minimum, Maximum, SmallChange, and … Continue reading

Posted in controls | Tagged , , , , , , , , , , , , , , , , | 2 Comments

Use scrollbars to select RGB and HLS colors in C#

The example Convert between RGB and HLS color models in C# explains how to convert between the RGB and HLS color models. This example uses similar code to let the user manipulate scroll bars to select colors using either model. … Continue reading

Posted in algorithms, controls, graphics, image processing | Tagged , , , , , , , , , , , , , , , , , , , , | Leave a comment

Use a scrollbar to select non-integer values in C#

The Trackbar and scrollbar controls let the user select integer values, but sometimes it’s useful to let the user select a non-integer value. You can let the user type into a text box but then the user can enter invalid … Continue reading

Posted in controls, mathematics | Tagged , , , , , , , , , , , , | Leave a comment

Set video position with a scroll bar with WPF in C#

The example Control a video with the WPF MediaElement in C# lets you set video position in several ways. You can use the Next or Previous buttons to adjust the video’s current position by 10 seconds. You can also enter … Continue reading

Posted in controls, graphics, multimedia, wpf, XAML | Tagged , , , , , , , , , , , , , , , , , , , , | Leave a comment