Click here to Skip to main content
15,921,941 members
Home / Discussions / C#
   

C#

 
GeneralRe: Web based paint tool - WinForm Pin
OmegaSupreme4-Mar-04 10:24
OmegaSupreme4-Mar-04 10:24 
GeneralRe: Web based paint tool Pin
Heath Stewart4-Mar-04 10:28
protectorHeath Stewart4-Mar-04 10:28 
GeneralRe: Web based paint tool Pin
partyganger4-Mar-04 20:54
partyganger4-Mar-04 20:54 
QuestionHow to deal with lengthy tasks Pin
hongheo764-Mar-04 7:52
hongheo764-Mar-04 7:52 
AnswerRe: How to deal with lengthy tasks Pin
Mazdak4-Mar-04 8:08
Mazdak4-Mar-04 8:08 
GeneralRe: How to deal with lengthy tasks Pin
Werdna4-Mar-04 8:39
Werdna4-Mar-04 8:39 
GeneralRe: How to deal with lengthy tasks Pin
Mazdak4-Mar-04 8:43
Mazdak4-Mar-04 8:43 
AnswerRe: How to deal with lengthy tasks Pin
Dave Kreskowiak4-Mar-04 8:10
mveDave Kreskowiak4-Mar-04 8:10 
This is happening because the UI is being processed on the same thread as your code.Try dropping an Application.DoEvents() call into the loop that does the processing and make sure it is going to execute fairly frequently. This will cause your thread to give up control of the processor so other threads can run and other Windows can process their message queues, including yours.

The other option is to put your function that does this processing on another thread.
For an example:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cssample/html/vcsamThreadingSample.asp[^]


RageInTheMachine9532
AnswerRe: How to deal with lengthy tasks Pin
YetAnotherDeveloper4-Mar-04 10:22
YetAnotherDeveloper4-Mar-04 10:22 
AnswerRe: How to deal with lengthy tasks Pin
hongheo764-Mar-04 14:51
hongheo764-Mar-04 14:51 
GeneralRe: How to deal with lengthy tasks Pin
Uwe Keim5-Mar-04 5:49
sitebuilderUwe Keim5-Mar-04 5:49 
GeneralBalloon ToolTips Pin
Marco M.4-Mar-04 7:26
Marco M.4-Mar-04 7:26 
GeneralRe: Balloon ToolTips Pin
Mazdak4-Mar-04 7:36
Mazdak4-Mar-04 7:36 
GeneralRe: Balloon ToolTips Pin
Heath Stewart4-Mar-04 9:57
protectorHeath Stewart4-Mar-04 9:57 
GeneralCustom Control Designer not seeing Controls on init Pin
YetAnotherDeveloper4-Mar-04 7:22
YetAnotherDeveloper4-Mar-04 7:22 
GeneralRe: Custom Control Designer not seeing Controls on init Pin
YetAnotherDeveloper4-Mar-04 10:02
YetAnotherDeveloper4-Mar-04 10:02 
GeneralRe: Custom Control Designer not seeing Controls on init Pin
YetAnotherDeveloper4-Mar-04 19:19
YetAnotherDeveloper4-Mar-04 19:19 
GeneralProblem with marshal-by-reference class Pin
Flack4-Mar-04 7:12
Flack4-Mar-04 7:12 
GeneralRe: Problem with marshal-by-reference class Pin
turbochimp4-Mar-04 9:29
turbochimp4-Mar-04 9:29 
GeneralRe: Problem with marshal-by-reference class Pin
Roman Rodov4-Mar-04 18:49
Roman Rodov4-Mar-04 18:49 
GeneralCreating a short cut.... Pin
Anonymous4-Mar-04 5:46
Anonymous4-Mar-04 5:46 
GeneralRe: Creating a short cut.... Pin
Heath Stewart4-Mar-04 5:56
protectorHeath Stewart4-Mar-04 5:56 
GeneralAdding control to toolbox Pin
Gary Hyslop4-Mar-04 5:44
Gary Hyslop4-Mar-04 5:44 
GeneralRe: Adding control to toolbox Pin
Heath Stewart4-Mar-04 5:52
protectorHeath Stewart4-Mar-04 5:52 
GeneralRe: Adding control to toolbox Pin
Mazdak4-Mar-04 5:53
Mazdak4-Mar-04 5:53 

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.