Click here to Skip to main content
Licence 
First Posted 11 Jul 2002
Views 113,397
Bookmarked 32 times

VB.NET Knob Control using Windows Forms and GDI+

By | 11 Jul 2002 | Article
User Drawn Control for .NET Winforms using GDI+

Knob Control Image

This code was originally written by Jigar Desai using C#. Naturally, as a VB Programmer, I needed to see if this control could be readily implemented using VB.NET. After many hours of hair pulling, this control has been successfully ported to VB.NET . Additionally, I added a new design-time property to the original control which allows the Knob Color to take on a different color than the control's background. The only change to the original code is the addition of the "KnobColor" Property. I have included the "TestKnobControl" Project to demonstate the use of this control's ValueChanged Event as well as the vast array of different colors now available for the control.

This control implements several interesting techniques, to include: Delegates, Properties, GDI+ and Overriding base methods. Special thanks, from the VB Community, to Jigar for his quick and positive response on my request to post this control in VB.NET.

The original Article for this control can be found on C-SharpCorner.com

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

About the Author

blong

Web Developer

United States United States

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralTick Marks fix Pinmemberspoogie16:05 22 Sep '07  
GeneralModification Pinmemberm1598112:59 18 Nov '06  
GeneralVB.NET 2005 Pinmemberultra017:11 29 Apr '06  
GeneralUpdate for some Value visualization.. Pinmemberwoo_hoo20:31 15 Nov '05  
QuestionC# version ? PinmemberJohn H Long4:33 3 Dec '03  
AnswerRe: C# version ? Pinmemberblong13:59 4 Dec '03  
GeneralRe: C# version ? PinmemberJohn H Long3:18 7 Dec '03  
GeneralRe: C# version ? PinmemberMichal Brylka7:30 8 Feb '07  
GeneralBug... PinmemberFrancois Germain16:33 17 Feb '03  
GeneralRe: Bug... Pinmemberblong9:58 18 Feb '03  
GeneralRe: Bug... A fix of the cause of the error Pinmembertntiger7:59 26 Sep '03  
GeneralA couple of questions... PinmemberJosh Martin13:31 12 Jul '02  

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.

Permalink | Advertise | Privacy | Mobile
Web04 | 2.5.120517.1 | Last Updated 12 Jul 2002
Article Copyright 2002 by blong
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid