Results 1 to 5 of 5

Thread: Trackbar

  1. #1
    Member
    Join Date
    Jul 10
    Posts
    63

    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)

  2. #2
    Fanatic Member x-ice's Avatar
    Join Date
    Mar 04
    Location
    UK
    Posts
    671

    Re: Trackbar

    Quote Originally Posted by Argoo View Post
    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

  3. #3
    Member
    Join Date
    Jul 10
    Posts
    63

    Re: Trackbar

    Quote Originally Posted by x-ice View Post
    You can set a minimum value.

    http://www.dotnetperls.com/trackbar
    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.

  4. #4
    Fanatic Member AceInfinity's Avatar
    Join Date
    May 11
    Posts
    605

    Re: Trackbar

    Quote Originally Posted by Argoo View Post
    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.
    <<<------------
    < Please rate my post if this helped you out. Any kind of thanks is gladly appreciated >



    VB Programming (2012 - Present)
    ®Crestron - DMC-T Certified Programmer | Software Developer
    <<<------------

  5. #5
    Fanatic Member AceInfinity's Avatar
    Join Date
    May 11
    Posts
    605

    Re: Trackbar

    Here's the property:
    csharp Code:
    1. trackBar1.TickFrequency = 5000;
    <<<------------
    < Please rate my post if this helped you out. Any kind of thanks is gladly appreciated >



    VB Programming (2012 - Present)
    ®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
  •