how to run continuous loop in windows application without affecting the running application

shasha960

Honorable
Sep 3, 2013
11
0
10,560
i am developing a application like ATM. I need a continuous loop that run behind the screen which require authentication. but it should not affect the shown screen. which is the best way to do this. please suggest solution for this. i am waiting...
thanks in advance.....................
 

shasha960

Honorable
Sep 3, 2013
11
0
10,560


sorry for that.. i am using vb.net...
 

shasha960

Honorable
Sep 3, 2013
11
0
10,560


Thanks for this valuable reply. but i create a sample app using the given code in visual studio 2008. it shows a error that "Cross-thread operation not valid: Control 'ProgressBar1' accessed from a thread other than the thread it was created on".
 

shasha960

Honorable
Sep 3, 2013
11
0
10,560
finally i found a solution for me.
to create running watch in application,
i) add a timer, and label in windows form
ii) in form load,
timer1 =new timer
addhandler timer1_tick, Addressof timer1_tick
Timer1.start()
iii) Then double click timer
label1.text=timerofday.


this runs continuously without affecting the other process in windows form.
thank you.....