What I'm trying to do here is put down a trackbar like the one on Windows XP to change resolution: (http://puu.sh/7Li5h.png)
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:
trackBarIP.Minimum = 0;
trackBarIP.TickFrequency = 1000;
trackBarIP.SmallChange = 50;
trackBarIP.LargeChange = 100;
trackBarIP.Maximum = 6300;
I have this code to show the current value of the Trackbar in the textbox next to it:
private void trackBarIP_ValueChanged(object sender, EventArgs e)
{
textBoxIP.Text = trackBarIP.Value.ToString();
}