Results 1 to 2 of 2

Thread: updown control fun!!!

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2005
    Posts
    12

    Talking updown control fun!!!

    Anyone know how to make an updown control speed up (the values of a buddy control) the longer it is held down? Does it require a special control to do this or can the code be developed?



    Thanks!

  2. #2
    No place like 127.0.0.1 eyeRmonkey's Avatar
    Join Date
    Jul 2005
    Location
    Blissful Oblivion
    Posts
    2,306

    Re: updown control fun!!!

    You could use a timer to change the increment property. Make the timer start when the updown is pressed (mouse down) then if the timer reaches a certian number (length of time) then increase the increment property. Then on mouse up set the increment back to 1 or whatever value you want.
    Visual Studio 2005 Professional Edition (.NET Framework 2.0)
    ~ VB .NET Links: Visual Basic 6 to .NET Function Equivalents (Thread) | Refactor! (White Paper) | Easy Control for Wizard Forms | Making A Proper UI For WinForms | Graphics & GDI+ Tutorial | Websites For Free Icons
    ~ QUOTE: Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -Rich Cook

    ~ eyeRmonkey.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width