I have a next and a previous button, each will:
increment 3 process_globals in Starter,
run 3 Subs loading a bitmap in 3 seperate imageviews
and do 3 kvs.Put statements.
If I click a button too fast too many times my counter variable goes from 13, 14, 15 to 116.
Would DoEvent in Button_Click be a way to prevent this or is there a better way?
There's no way of knowing how fast the end user will click the button, I merely wanted to protect Counter1 from very rapid Button1_Clicks.
Long_click has its' use but not in this case, the code snippet above is more user friendly with a Tap-Tap-Tap feel, more adjustable, and does the job at 300 milliseconds.
Thanks for mentioning the long_click option.