Click here to Skip to main content
15,885,278 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Generic Methods : Pin
Dave Kreskowiak9-Apr-08 6:25
mveDave Kreskowiak9-Apr-08 6:25 
GeneralRe: Generic Methods : Pin
Christian Graus9-Apr-08 11:20
protectorChristian Graus9-Apr-08 11:20 
GeneralRe: Generic Methods : Pin
Dave Kreskowiak9-Apr-08 12:32
mveDave Kreskowiak9-Apr-08 12:32 
GeneralText in form title bar not keeping up (me.text) Pin
Johan Hakkesteegt9-Apr-08 2:19
Johan Hakkesteegt9-Apr-08 2:19 
GeneralRe: Text in form title bar not keeping up (me.text) Pin
ChandraRam9-Apr-08 2:34
ChandraRam9-Apr-08 2:34 
GeneralRe: Text in form title bar not keeping up (me.text) Pin
Johan Hakkesteegt9-Apr-08 3:16
Johan Hakkesteegt9-Apr-08 3:16 
GeneralRe: Text in form title bar not keeping up (me.text) Pin
ChandraRam9-Apr-08 5:43
ChandraRam9-Apr-08 5:43 
GeneralRe: Text in form title bar not keeping up (me.text) Pin
Dave Kreskowiak9-Apr-08 5:48
mveDave Kreskowiak9-Apr-08 5:48 
The UI thread is busy doing all of your operations. It would appear that every once in a while, the thread is freed to process the Window's message pump, thereby processing all the WM_PAINT messages for the window, which means you get to see your progressbar and window title updates.

So long as the thread is busy doing other things, these paint messages do not get processed, thereby looking like the application hung.

You have little choice but to move these operations to a seperate thread and have this processing code fire off progress messages every once in a while. The UI thread will be able to process these messages immediately, while your processing thread does it's job. You may want to look into using the BackgroundWorker class make this process easier.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




Generaloptional parameter Pin
helelark1239-Apr-08 1:22
helelark1239-Apr-08 1:22 
GeneralRe: optional parameter Pin
Christian Graus9-Apr-08 2:06
protectorChristian Graus9-Apr-08 2:06 
GeneralRe: optional parameter Pin
helelark1239-Apr-08 2:30
helelark1239-Apr-08 2:30 
GeneralRe: optional parameter Pin
Luc Pattyn9-Apr-08 2:49
sitebuilderLuc Pattyn9-Apr-08 2:49 
GeneralRe: optional parameter Pin
helelark1239-Apr-08 3:00
helelark1239-Apr-08 3:00 
GeneralRe: optional parameter Pin
Dave Kreskowiak9-Apr-08 5:34
mveDave Kreskowiak9-Apr-08 5:34 
GeneralRe: optional parameter Pin
helelark1239-Apr-08 5:48
helelark1239-Apr-08 5:48 
GeneralRe: optional parameter Pin
Dave Kreskowiak9-Apr-08 6:26
mveDave Kreskowiak9-Apr-08 6:26 
GeneralRe: optional parameter Pin
helelark1239-Apr-08 18:42
helelark1239-Apr-08 18:42 
GeneralRe: optional parameter Pin
Dave Kreskowiak10-Apr-08 1:44
mveDave Kreskowiak10-Apr-08 1:44 
GeneralRe: optional parameter Pin
helelark12310-Apr-08 2:34
helelark12310-Apr-08 2:34 
GeneralRe: optional parameter Pin
Christian Graus9-Apr-08 2:49
protectorChristian Graus9-Apr-08 2:49 
AnswerRe: optional parameter Pin
Ashish Sehajpal9-Apr-08 3:28
Ashish Sehajpal9-Apr-08 3:28 
GeneralRe: optional parameter Pin
Steven J Jowett9-Apr-08 3:42
Steven J Jowett9-Apr-08 3:42 
GeneralRe: optional parameter Pin
helelark1239-Apr-08 3:48
helelark1239-Apr-08 3:48 
GeneralRe: optional parameter Pin
Steven J Jowett9-Apr-08 4:27
Steven J Jowett9-Apr-08 4:27 
GeneralRe: optional parameter Pin
helelark1239-Apr-08 4:54
helelark1239-Apr-08 4:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.