CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Buttons????

  1. #1
    Join Date
    Feb 2003
    Location
    Oklahoma City, OK
    Posts
    63

    Buttons????

    ok I have a program that needs to perform actions repeatedly but only WHILE the user has the Button held down the only way i figure I can do that since regular buttons don't have a pressed propery is to create a thread and point it to a constant while loop and start the thread in the mousedown event handler of the button and stop the thread in the mouseup event handler. but what I want to know is: Is there a better way???


    Please help

    Phire

  2. #2
    Join Date
    Feb 2003
    Location
    Oklahoma City, OK
    Posts
    63
    well the thread idea works pretty well so I think I got it

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