Sign in with
Sign up | Sign in
Your question
Solved

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

Last response: in Applications
Share
December 18, 2013 9:37:01 PM

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.....................
December 18, 2013 11:32:55 PM

Run the authentication loop in a separate thread. As you don't say what language you are using to develop the application it's difficult to be more specific.
m
0
l
December 19, 2013 12:51:32 AM

Ijack said:
Run the authentication loop in a separate thread. As you don't say what language you are using to develop the application it's difficult to be more specific.


sorry for that.. i am using vb.net...
m
0
l
Related resources

Best solution

December 19, 2013 12:54:51 AM

Here's an article telling you how to create a threaded application in VB.net: http://support.microsoft.com/kb/315577
Share
February 28, 2014 10:04:04 PM

Ijack said:
Here's an article telling you how to create a threaded application in VB.net: http://support.microsoft.com/kb/315577


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".
m
0
l
March 21, 2014 1:53:47 AM

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.....
m
0
l
!