title: Make rotary knob control
body: <p>I need to do a rotary knob control, or use one that works. I download one from that web: <a href="http://www.c-sharpcorner.com/uploadfile/desaijm/knobcontrolusingwindowsforms11182005004925am/knobcontrolusingwindowsforms.aspx" rel="nofollow">http://www.c-sharpcorner.com/uploadfile/desaijm/knobcontrolusingwindowsforms11182005004925am/knobcontrolusingwindowsforms.aspx</a> but it doesn't work as I want.</p>
  
  <p>I need that this knob control can make a complete circle when I move it. At the moment when you go to the max values, if you pass this value the button go automaticaly to the other value (that is 0).</p>
  
  <p>All i want to do is to increment the knob rotary value all the times without a max value and not to restart to 0 when it pass the max value.</p>
  
  <p>I post the code where the value change happens, but I was working on it for 3 hours and I don't know how to change... There are also two variables thar are maximum and minimum that have the max and min values of the knob.</p>
  
  <pre><code>protected override void OnMouseMove(MouseEventArgs e)
      {
          //--------------------------------------
          //  Following Handles Knob Rotating     
          //--------------------------------------
          if (this.isKnobRotating == true)
          {
              this.Cursor = Cursors.Hand;
              Point p = new Point(e.X, e.Y);
              int posVal = this.getValueFromPosition(p);
              Value = posVal;
          }       
      }
  </code></pre>
  
  <p>Any idea to do that or any C# control that could help me?</p>
  
  <p>Thanks!</p>