Click here to Skip to main content
13,298,551 members (61,778 online)
Click here to Skip to main content
Add your own
alternative version

Stats

132.9K views
2.8K downloads
66 bookmarked
Posted 15 May 2002

C# RangeBar control

, 8 Jul 2003
Rate this:
Please Sign up or sign in to vote.
A control that combines two scrollbars for choosing two related values

<!------------------------------- STEP 3 ---------------------------><!-- Add the article text. Please use simple formatting (

,

etc) -->

Introduction

If you want to give the user the possibility to define a number interval to set a two side threshold in an image processing program, then you can use two scrollbars, first for lower and second for upper limit. Further you have to catch changing events to prevent that lower limit is higher than the upper.

Wouldn't it be easier to have a control that combines two scrollbars?

The ZzzzRangeBar is a two button slide control for setting an integer number interval. If you push with a left click on a slide button it will marked and while mouse button is pressed you can move the slider left and right. Otherwise you can use the keys + and - to manipulate the slider position.

The control will throw two events. While left mouse button is pressed and the position of one slider has changed the event OnRangeChanging will generate and if you release mouse button, the event OnRangeChanged signals program that a new range was selected.

History

16 May 2002 first version of rangebar control

7 June 2003  enhancing control with vertical orientation and different scaling ticks options

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Detlef Neunherz
Web Developer
Germany Germany
No Biography provided

You may also be interested in...

Pro

Comments and Discussions

 
Questionhow can i add one more thumb here to show actual position Pin
Le@rner12-Sep-17 22:10
memberLe@rner12-Sep-17 22:10 
QuestionLicense Pin
The Techsmith18-Apr-12 11:42
memberThe Techsmith18-Apr-12 11:42 
AnswerRe: License Pin
Detlef Neunherz18-Apr-12 20:57
memberDetlef Neunherz18-Apr-12 20:57 
GeneralRe: License Pin
The Techsmith19-Apr-12 3:34
memberThe Techsmith19-Apr-12 3:34 
GeneralRe: License Pin
Member 853650122-Jan-13 10:50
memberMember 853650122-Jan-13 10:50 
QuestionWill it be easy to change range bar to select a date range? Pin
agelospanagiotakis22-Sep-11 0:03
memberagelospanagiotakis22-Sep-11 0:03 
AnswerRe: Will it be easy to change range bar to select a date range? Pin
Detlef Neunherz22-Sep-11 3:23
memberDetlef Neunherz22-Sep-11 3:23 
GeneralRe: Will it be easy to change range bar to select a date range? Pin
agelospanagiotakis22-Sep-11 14:23
memberagelospanagiotakis22-Sep-11 14:23 
GeneralRe: Will it be easy to change range bar to select a date range? Pin
agelospanagiotakis23-Sep-11 0:52
memberagelospanagiotakis23-Sep-11 0:52 
GeneralOpen Source License Pin
apham9119-Mar-11 4:08
memberapham9119-Mar-11 4:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.171207.1 | Last Updated 9 Jul 2003
Article Copyright 2002 by Detlef Neunherz
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid