Click here to Skip to main content
15,896,154 members

Comments by Muhammad Tufail 1979 (Top 74 by date)

Muhammad Tufail 1979 4-Jul-14 12:22pm View    
sorry , Sergey Alexandrovich , could you please explain a bit more.
Muhammad Tufail 1979 4-Jul-14 11:58am View    
it mean i don't need MethodA. i can do the functionality of methodA , when intervalCounter==0.
in the area of //Do what you want...
am i right please.
and it will make my program responsible if i have a button and to click on that to stop or start or pause this counter please.
Muhammad Tufail 1979 4-Jul-14 11:47am View    
yes please, i can implement timer, and to set its interval time 20 ms and a counter which should count for it up to 10. but i don't know how methodA ( which is the caller or the starter of this timer) should wait until timer completes 10 execution of 20ms.
Muhammad Tufail 1979 4-Jul-14 11:44am View    
could you please explain me a bit more. Actually i want to keep the time constant (i.e 20ms) for each iteration, so thus the moving of picture will be smooth.
Muhammad Tufail 1979 4-Jul-14 11:42am View    
cause 200ms are for the whole task. the task is to move an object (i.e picture) from one place to another place in the panel within 10 interval and thus the time will be for each move should be 20ms.