title: Specific values/intervals on a Trackbar
body: <p>What I'm trying to do here is put down a trackbar like the one on Windows XP to change resolution: (<a href="http://puu.sh/7Li5h.png" rel="nofollow">http://puu.sh/7Li5h.png</a>)</p>
  
  <p>I want to set specific intervals/increment values like in the picture above. Currently the lines underneath the actual bar are there, but I can still move the pointer everywhere I like. This is my current code:</p>
  
  <pre><code>trackBarIP.Minimum = 0;
  trackBarIP.TickFrequency = 1000;
  trackBarIP.SmallChange = 50;
  trackBarIP.LargeChange = 100;
  trackBarIP.Maximum = 6300;
  </code></pre>
  
  <p>I have this code to show the current value of the Trackbar in the textbox next to it:</p>
  
  <p>(<a href="http://puu.sh/7Ligk.png" rel="nofollow">http://puu.sh/7Ligk.png</a>)</p>
  
  <pre><code>private void trackBarIP_ValueChanged(object sender, EventArgs e)
  {
      textBoxIP.Text = trackBarIP.Value.ToString();
  }
  </code></pre>