disabling Trackbar scroll

  • Thread starter Thread starter gupta.amber
  • Start date Start date
G

gupta.amber

Hi,


As a newbie to C# application programing ...I would like to know is
there a way to disable the user scroling of standard track bar
programatically...

Thanks in advance
 
You should also handle the ValueChanged event and reset the value to its
default when the user press Home and/or End

private void trackBar1_ValueChanged(object sender, EventArgs e)

{

trackBar1.Value = someValue;

}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top