Click here to Skip to main content
11,432,427 members (67,358 online)
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

Introduction

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.

License

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

Share

About the Author

tito007
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

 
QuestionGreat!!! Pin
Member 1139795623-Jan-15 9:27
memberMember 1139795623-Jan-15 9:27 
Questioni got a error like Pin
sanjeewacodeproject10-Sep-14 7:24
membersanjeewacodeproject10-Sep-14 7:24 
AnswerRe: i got a error like Pin
Ravi Bhavnani10-Sep-14 8:23
professionalRavi Bhavnani10-Sep-14 8:23 
GeneralGreat Job!! 5 of 5 Pin
rich168828-Jun-14 18:34
memberrich168828-Jun-14 18:34 
QuestionKnob with only 4 positions Pin
TTT3114-Apr-14 16:56
memberTTT3114-Apr-14 16:56 
QuestionHow should I use your control in my project? Pin
Member 1071028411-Apr-14 3:52
memberMember 1071028411-Apr-14 3:52 
GeneralGood Pin
Member 1022582313-Feb-14 17:09
memberMember 1022582313-Feb-14 17:09 
GeneralNice job! Pin
afs00121-Nov-13 8:08
memberafs00121-Nov-13 8:08 
GeneralMy vote of 2 Pin
Mario M.10-Sep-13 7:09
memberMario M.10-Sep-13 7:09 
Questionnice, but... Pin
Mario M.10-Sep-13 7:09
memberMario M.10-Sep-13 7:09 
AnswerRe: nice, but... Pin
tito00710-Sep-13 15:49
membertito00710-Sep-13 15:49 
GeneralRe: nice, but... Pin
Mario M.11-Sep-13 11:35
memberMario M.11-Sep-13 11:35 
QuestionValue Change Event Pin
komperpiet2-Sep-13 5:10
memberkomperpiet2-Sep-13 5:10 
AnswerRe: Value Change Event Pin
tito0073-Sep-13 8:03
membertito0073-Sep-13 8:03 
GeneralRe: Value Change Event Pin
afs00121-Nov-13 8:09
memberafs00121-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.150428.2 | Last Updated 26 Aug 2013
Article Copyright 2013 by tito007
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid