Click here to Skip to main content
15,569,644 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Generic Methods : Pin
Dave Kreskowiak9-Apr-08 7:25
mveDave Kreskowiak9-Apr-08 7:25 
GeneralRe: Generic Methods : Pin
Christian Graus9-Apr-08 12:20
mveChristian Graus9-Apr-08 12:20 
GeneralRe: Generic Methods : Pin
Dave Kreskowiak9-Apr-08 13:32
mveDave Kreskowiak9-Apr-08 13:32 
GeneralText in form title bar not keeping up (me.text) Pin
Johan Hakkesteegt9-Apr-08 3:19
Johan Hakkesteegt9-Apr-08 3:19 
GeneralRe: Text in form title bar not keeping up (me.text) Pin
ChandraRam9-Apr-08 3:34
ChandraRam9-Apr-08 3:34 
GeneralRe: Text in form title bar not keeping up (me.text) Pin
Johan Hakkesteegt9-Apr-08 4:16
Johan Hakkesteegt9-Apr-08 4:16 
GeneralRe: Text in form title bar not keeping up (me.text) Pin
ChandraRam9-Apr-08 6:43
ChandraRam9-Apr-08 6:43 
GeneralRe: Text in form title bar not keeping up (me.text) Pin
Dave Kreskowiak9-Apr-08 6:48
mveDave Kreskowiak9-Apr-08 6: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 2:22
helelark1239-Apr-08 2:22 
GeneralRe: optional parameter Pin
Christian Graus9-Apr-08 3:06
mveChristian Graus9-Apr-08 3:06 
GeneralRe: optional parameter Pin
helelark1239-Apr-08 3:30
helelark1239-Apr-08 3:30 
GeneralRe: optional parameter Pin
Luc Pattyn9-Apr-08 3:49
sitebuilderLuc Pattyn9-Apr-08 3:49 
GeneralRe: optional parameter Pin
helelark1239-Apr-08 4:00
helelark1239-Apr-08 4:00 
GeneralRe: optional parameter Pin
Dave Kreskowiak9-Apr-08 6:34
mveDave Kreskowiak9-Apr-08 6:34 
GeneralRe: optional parameter Pin
helelark1239-Apr-08 6:48
helelark1239-Apr-08 6:48 
GeneralRe: optional parameter Pin
Dave Kreskowiak9-Apr-08 7:26
mveDave Kreskowiak9-Apr-08 7:26 
GeneralRe: optional parameter Pin
helelark1239-Apr-08 19:42
helelark1239-Apr-08 19:42 
GeneralRe: optional parameter Pin
Dave Kreskowiak10-Apr-08 2:44
mveDave Kreskowiak10-Apr-08 2:44 
GeneralRe: optional parameter Pin
helelark12310-Apr-08 3:34
helelark12310-Apr-08 3:34 
GeneralRe: optional parameter Pin
Christian Graus9-Apr-08 3:49
mveChristian Graus9-Apr-08 3:49 
AnswerRe: optional parameter Pin
Ashish Sehajpal9-Apr-08 4:28
Ashish Sehajpal9-Apr-08 4:28 
GeneralRe: optional parameter Pin
Steven J Jowett9-Apr-08 4:42
Steven J Jowett9-Apr-08 4:42 
GeneralRe: optional parameter Pin
helelark1239-Apr-08 4:48
helelark1239-Apr-08 4:48 
GeneralRe: optional parameter Pin
Steven J Jowett9-Apr-08 5:27
Steven J Jowett9-Apr-08 5:27 
GeneralRe: optional parameter Pin
helelark1239-Apr-08 5:54
helelark1239-Apr-08 5: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.