CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 1999
    Location
    Leicester England
    Posts
    61

    Continuous Command Button Event

    Hi
    I've got a text box with two command buttons (cmdincrease and cmddecrease) next to it. The text box hold the time in the format hh:mm:ss

    I've written some code that allows me to increment the time from right to left ie if time is 09:11:23 and I press the cmdincrease command button the time gets incremented to 09:11:24 the code works fine and I have placed it in the mousedown event of the button, but my problem is I need to click the button
    each time to execute my code, does anybody know how I can do it such that if I keep the increase command button pressed (using the mouse) the mousedown event is executed until I release it.

    Maybe there's another event into which I need to place my code.

    I am trying to mimic the setting of the wait times like they do for the screen saver in the settings section.

    Many thanks in advance

    Raj


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Continuous Command Button Event

    use the "UpDown" Control that is part of the Windows COmmon COntrols part 2 in VB 6.


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

Featured