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

Status
Not open for further replies.

shasha960

Honorable
Sep 3, 2013
25
0
10,540
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
25
0
10,540


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

shasha960

Honorable
Sep 3, 2013
25
0
10,540


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
25
0
10,540
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.....
 
Status
Not open for further replies.