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

C# Knob Control

, 26 Aug 2013 CPOL
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#

Comments and Discussions

Questioni got a error like Pinmembersanjeewacodeproject10-Sep-14 7:24 
AnswerRe: i got a error like PinprofessionalRavi Bhavnani10-Sep-14 8:23 
GeneralGreat Job!! 5 of 5 Pinmemberrich168828-Jun-14 18:34 
QuestionKnob with only 4 positions PinmemberTTT3114-Apr-14 16:56 
QuestionHow should I use your control in my project? PinmemberMember 1071028411-Apr-14 3:52 
GeneralGood PinmemberMember 1022582313-Feb-14 17:09 
GeneralNice job! Pinmemberafs00121-Nov-13 8:08 
GeneralMy vote of 2 PinmemberMario M.10-Sep-13 7:09 
Questionnice, but... PinmemberMario M.10-Sep-13 7:09 
AnswerRe: nice, but... Pinmembertito00710-Sep-13 15:49 
GeneralRe: nice, but... PinmemberMario M.11-Sep-13 11:35 
QuestionValue Change Event Pinmemberkomperpiet2-Sep-13 5:10 
AnswerRe: Value Change Event Pinmembertito0073-Sep-13 8:03 
GeneralRe: Value Change Event Pinmemberafs00121-Nov-13 8: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
Web03 | 2.8.141216.1 | Last Updated 26 Aug 2013
Article Copyright 2013 by tito007
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid