Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.visual.basic    |    MS Visual Basic discussions, NOT dot-net    |    10,840 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 9,303 of 10,840    |
|    Vince Morgan to Basil Fenix    |
|    Re: Checking text file I get "Not Respon    |
|    16 Mar 05 11:35:24    |
   
   XPost: alt.comp.lang.vb, microsoft.public.vb   
   From: vinhar@NOSPAMoptusnet.com.au   
      
   "Basil Fenix" wrote in message   
   news:Jp6dnZUp6NbJo6rfRVn-rg@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   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca