|
-
Aug 17th, 2012, 03:54 AM
#1
Thread Starter
Lively Member
Trackbar
Hi
I have created a trackbar in my application with these values
Code:
trackTimmar.Maximum = 30000;
trackTimmar.TickFrequency = 5000;
trackTimmar.SmallChange = 5000;
trackTimmar.LargeChange = 5000;
How do i do prevent selection of values between each 5000 when i using the mouse to slide (same scenario with mouse and right/left arrow)
-
Aug 17th, 2012, 04:31 AM
#2
Fanatic Member
Re: Trackbar
 Originally Posted by Argoo
Hi
I have created a trackbar in my application with these values
Code:
trackTimmar.Maximum = 30000;
trackTimmar.TickFrequency = 5000;
trackTimmar.SmallChange = 5000;
trackTimmar.LargeChange = 5000;
How do i do prevent selection of values between each 5000 when i using the mouse to slide (same scenario with mouse and right/left arrow)
You can set a minimum value.
http://www.dotnetperls.com/trackbar
-
Aug 17th, 2012, 04:40 AM
#3
Thread Starter
Lively Member
Re: Trackbar
 Originally Posted by x-ice
No, that just give me a start value at the minimum value. I values should be just 0 5000 10000 15000 etc not 4953 for example.
-
Aug 18th, 2012, 05:03 PM
#4
Re: Trackbar
 Originally Posted by Argoo
No, that just give me a start value at the minimum value. I values should be just 0 5000 10000 15000 etc not 4953 for example.
Set the TickFrequency to 5000.
<<<------------
.NET Programming (2012 - 2018)
®Crestron - DMC-T Certified Programmer | Software Developer <<<------------
-
Aug 18th, 2012, 05:04 PM
#5
Re: Trackbar
Here's the property:
csharp Code:
trackBar1.TickFrequency = 5000;
<<<------------
.NET Programming (2012 - 2018)
®Crestron - DMC-T Certified Programmer | Software Developer <<<------------
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|