Click here to Skip to main content
11,704,509 members (59,896 online)
Click here to Skip to main content

C# Knob Control

, 26 Aug 2013 CPOL 17.6K 2.3K 15
Rate this:
Please Sign up or sign in to vote.
Simple knob control for industrial or audio applications


This is my first post and is not a long tip due my poor English and my limited time (sorry for the mistakes), but I hope the source code will be useful for someone.

I'm working on small DAW project and some time ago, I needed a very simple knob control, easy to use and configure. To practice draw with GDI, I decided to write my own and here is the result (please take a look at the attached source code). The project is developed with SharpDevelop, a free IDE for .NET.

The control has been created with the purpose of translating it later to C++/wxWidgets.

The properties of the control are very similar to slider control of .NET library.

Any suggestions or bug reports are highly appreciated.

Thanks to all developers who have shared interesting articles.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Software Developer
Paraguay Paraguay
I am a developer self-taught, formally educated as Mechanical and Electronic Technician
I’m working in a multinational company in the logistics department where currently I use my knowledge of mechanics, electronics, pneumatics, and of course, programming.
I develop Software since 2003 using vb.Net and C#

You may also be interested in...

Comments and Discussions

QuestionGreat!!! Pin
Member 1139795623-Jan-15 8:27
memberMember 1139795623-Jan-15 8:27 
Questioni got a error like Pin
sanjeewacodeproject10-Sep-14 6:24
membersanjeewacodeproject10-Sep-14 6:24 
AnswerRe: i got a error like Pin
Ravi Bhavnani10-Sep-14 7:23
professionalRavi Bhavnani10-Sep-14 7:23 
GeneralGreat Job!! 5 of 5 Pin
rich168828-Jun-14 17:34
memberrich168828-Jun-14 17:34 
QuestionKnob with only 4 positions Pin
TTT3114-Apr-14 15:56
memberTTT3114-Apr-14 15:56 
QuestionHow should I use your control in my project? Pin
Member 1071028411-Apr-14 2:52
memberMember 1071028411-Apr-14 2:52 
GeneralGood Pin
Member 1022582313-Feb-14 16:09
memberMember 1022582313-Feb-14 16:09 
GeneralNice job! Pin
afs00121-Nov-13 7:08
memberafs00121-Nov-13 7:08 
GeneralMy vote of 2 Pin
Mario M.10-Sep-13 6:09
memberMario M.10-Sep-13 6:09 
Questionnice, but... Pin
Mario M.10-Sep-13 6:09
memberMario M.10-Sep-13 6:09 
AnswerRe: nice, but... Pin
tito00710-Sep-13 14:49
membertito00710-Sep-13 14:49 
GeneralRe: nice, but... Pin
Mario M.11-Sep-13 10:35
memberMario M.11-Sep-13 10:35 
QuestionValue Change Event Pin
komperpiet2-Sep-13 4:10
memberkomperpiet2-Sep-13 4:10 
AnswerRe: Value Change Event Pin
tito0073-Sep-13 7:03
membertito0073-Sep-13 7:03 
GeneralRe: Value Change Event Pin
afs00121-Nov-13 7:09
memberafs00121-Nov-13 7:09 

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
Web01 | 2.8.150819.1 | Last Updated 26 Aug 2013
Article Copyright 2013 by tito007
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid