By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,122 Members | 1,554 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,122 IT Pros & Developers. It's quick & easy.

Checking text file I get "Not Responding"

P: n/a
I check data from a text file with a mdb Database using a progressbar and
changing the Caption by % to indicate to the user what is happening.The file
is large and takes quite a while. The problem though is that if the user
clicks on the form everything freezes and I get "Not Responding". It is
still doing the check because if you let it continue it finishes running.
Thanks
Basil
Jul 17 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a

"Basil Fenix" <ba***@iafrica.com> wrote in message
news:Jp********************@is.co.za...
I check data from a text file with a mdb Database using a progressbar and
changing the Caption by % to indicate to the user what is happening.The file is large and takes quite a while. The problem though is that if the user
clicks on the form everything freezes and I get "Not Responding". It is
still doing the check because if you let it continue it finishes running.
Thanks
Basil


The thread is too busy doing all that file reading etc. Put "DoEvents" at
an
appropriate place in your code. Possibly in the progressbar routine.
That will allow the thread to check for user interaction with the GUI and
to respond to the interactions.
HTH
Vince Morgan

Jul 17 '05 #2

P: n/a
Thanks working like a dream.Cannot beleive I am so stupid.
Thanks again
Basil
"Vince Morgan" <vi****@NOSPAMoptusnet.com.au> wrote in message
news:42***********************@news.optusnet.com.a u...

"Basil Fenix" <ba***@iafrica.com> wrote in message
news:Jp********************@is.co.za...
I check data from a text file with a mdb Database using a progressbar and
changing the Caption by % to indicate to the user what is happening.The

file
is large and takes quite a while. The problem though is that if the user
clicks on the form everything freezes and I get "Not Responding". It is
still doing the check because if you let it continue it finishes running.
Thanks
Basil


The thread is too busy doing all that file reading etc. Put "DoEvents" at
an
appropriate place in your code. Possibly in the progressbar routine.
That will allow the thread to check for user interaction with the GUI and
to respond to the interactions.
HTH
Vince Morgan

Jul 17 '05 #3

P: n/a

"Basil Fenix" <ba***@iafrica.com> wrote in message
news:t4********************@is.co.za...
Thanks working like a dream.Cannot beleive I am so stupid.
Thanks again
Basil


Not so. Stupid would be not asking...

Jul 17 '05 #4

P: n/a

"Basil Fenix" <ba***@iafrica.com> wrote in message
news:t4********************@is.co.za...
Thanks working like a dream.Cannot beleive I am so stupid.
Thanks again
Basil


Your welcome Basil.
Don't worry, if I hadn't done the same myself at some
point I probably wouldn't have recognised the prob. We
all make mistakes like that from time to time ;)
Regards,
Vince Morgan
Jul 17 '05 #5

P: n/a
Send me the source to see what you've got

Basil Fenix wrote:
I check data from a text file with a mdb Database using a progressbar and
changing the Caption by % to indicate to the user what is happening.The file
is large and takes quite a while. The problem though is that if the user
clicks on the form everything freezes and I get "Not Responding". It is
still doing the check because if you let it continue it finishes running.
Thanks
Basil

Jul 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.