Click here to Skip to main content
Click here to Skip to main content

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

Comments and Discussions

 
QuestionLicense PinmemberThe Techsmith18-Apr-12 11:42 
AnswerRe: License PinmemberDetlef Neunherz18-Apr-12 20:57 
GeneralRe: License PinmemberThe Techsmith19-Apr-12 3:34 
GeneralRe: License PinmemberMember 853650122-Jan-13 10:50 
QuestionWill it be easy to change range bar to select a date range? Pinmemberagelospanagiotakis22-Sep-11 0:03 
AnswerRe: Will it be easy to change range bar to select a date range? PinmemberDetlef Neunherz22-Sep-11 3:23 
GeneralRe: Will it be easy to change range bar to select a date range? Pinmemberagelospanagiotakis22-Sep-11 14:23 
GeneralRe: Will it be easy to change range bar to select a date range? Pinmemberagelospanagiotakis23-Sep-11 0:52 
GeneralOpen Source License Pinmemberapham9119-Mar-11 4:08 
GeneralRe: Open Source License PinmemberMember 77414959-Mar-11 22:16 
GeneralMy vote of 5 Pinmembersuplik1-Jul-10 17:38 
GeneralGreat Custom Control Pinmemberbsmisl2-Dec-09 23:23 
GeneralRe: Great Custom Control PinmemberDetlef Neunherz3-Dec-09 0:53 
Generalnice PinmemberBassam Alugili27-Nov-08 9:47 
QuestionUsage of this control. Pinmembervijaysubramaniam21-Jul-08 2:58 
GeneralThank you, question. Pinmemberkalin811-Jan-06 4:56 
GeneralThnx Pinmemberngna12-Mar-04 5:30 
Generalplz help me with running ur code Pinmemberrachel20302-Mar-04 7:01 
GeneralAdded ability to move entire range (both marks simultaneously) PinmemberMtnBiknGuy23-Oct-03 15:44 
GeneralRe: Added ability to move entire range (both marks simultaneously) PinsussDetlef Neunherz23-Oct-03 22:04 
GeneralRe: Added ability to move entire range (both marks simultaneously) PinmemberMtnBiknGuy26-Oct-03 5:06 
GeneralRe: Added ability to move entire range (both marks simultaneously) Pinmembersteffen_dec20-Feb-12 4:19 
GeneralVS 2002 PinmemberMtnBiknGuy23-Oct-03 10:18 
GeneralVery good, but PinmemberGary Sui28-Jun-03 13:59 
GeneralRe: Very good, but PinsussAnonymous3-Jul-03 1:49 

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

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

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