Click here to Skip to main content
Click here to Skip to main content
Go to top

C# Knob Control

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

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