Click here to Skip to main content
15,903,033 members
Home / Discussions / C#
   

C#

 
Questionhow to restrict users from setting focus to multiple cells in DataGridView ? Pin
alladeen29-Aug-09 5:05
alladeen29-Aug-09 5:05 
AnswerRe: how to restrict users from setting focus to multiple cells in DataGridView ? Pin
Henry Minute29-Aug-09 7:51
Henry Minute29-Aug-09 7:51 
Questionprint a image and text without using printer driver. using C#.NET Pin
shaktisinh29-Aug-09 3:57
shaktisinh29-Aug-09 3:57 
AnswerRe: print a image and text without using printer driver. using C#.NET Pin
Dave Kreskowiak29-Aug-09 5:47
mveDave Kreskowiak29-Aug-09 5:47 
GeneralRe: print a image and text without using printer driver. using C#.NET Pin
shaktisinh30-Aug-09 23:54
shaktisinh30-Aug-09 23:54 
GeneralRe: print a image and text without using printer driver. using C#.NET Pin
Dave Kreskowiak31-Aug-09 1:01
mveDave Kreskowiak31-Aug-09 1:01 
QuestionUI Not Responsive Pin
Abdul Rahman Hamidy29-Aug-09 1:35
Abdul Rahman Hamidy29-Aug-09 1:35 
AnswerRe: UI Not Responsive Pin
Dave Kreskowiak29-Aug-09 5:23
mveDave Kreskowiak29-Aug-09 5:23 
You're not showing enough of the code. What is "run"? Is this code sitting on a form or in a seperate class?

Also, did you know that every thread you launch costs you 1MB of RAM and is an expensive operation? Is there any particular reason for doing this??

After all that, you're not launching the same operation on 10 seperate threads. Each of your threads is calling the same function ON THE UI THREAD. So it's not suprising that your UI is frozen during this time. All you did was launch the call on a background thread, which farmed out the work of "runAction" back to the UI thread.

You do the work in the background threads and then if they have any updates to the UI that need to be done, they can Invoke a method that does the update on the UI thread.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008
But no longer in 2009...




GeneralRe: UI Not Responsive Pin
Abdul Rahman Hamidy29-Aug-09 20:48
Abdul Rahman Hamidy29-Aug-09 20:48 
Questionhow to connect 9 pin serial port plug to itself so tha one can recive the data in the 2nd Pin andtransmit in 3rd pin Pin
pallaka28-Aug-09 23:44
pallaka28-Aug-09 23:44 
AnswerRe: how to connect 9 pin serial port plug to itself so tha one can recive the data in the 2nd Pin andtransmit in 3rd pin Pin
OriginalGriff28-Aug-09 23:53
mveOriginalGriff28-Aug-09 23:53 
GeneralRe: how to connect 9 pin serial port plug to itself so tha one can recive the data in the 2nd Pin andtransmit in 3rd pin Pin
pallaka29-Aug-09 0:09
pallaka29-Aug-09 0:09 
GeneralRe: how to connect 9 pin serial port plug to itself so tha one can recive the data in the 2nd Pin andtransmit in 3rd pin Pin
OriginalGriff29-Aug-09 0:29
mveOriginalGriff29-Aug-09 0:29 
AnswerRe: how to connect 9 pin serial port plug to itself so tha one can recive the data in the 2nd Pin andtransmit in 3rd pin Pin
Luc Pattyn29-Aug-09 0:35
sitebuilderLuc Pattyn29-Aug-09 0:35 
GeneralRe: how to connect 9 pin serial port plug to itself so tha one can recive the data in the 2nd Pin andtransmit in 3rd pin Pin
pallaka29-Aug-09 1:21
pallaka29-Aug-09 1:21 
GeneralRe: how to connect 9 pin serial port plug to itself so tha one can recive the data in the 2nd Pin andtransmit in 3rd pin Pin
Luc Pattyn29-Aug-09 1:42
sitebuilderLuc Pattyn29-Aug-09 1:42 
GeneralRe: how to connect 9 pin serial port plug to itself so tha one can recive the data in the 2nd Pin andtransmit in 3rd pin Pin
Dave Kreskowiak29-Aug-09 5:13
mveDave Kreskowiak29-Aug-09 5:13 
GeneralRe: how to connect 9 pin serial port plug to itself so tha one can recive the data in the 2nd Pin andtransmit in 3rd pin Pin
Luc Pattyn29-Aug-09 5:37
sitebuilderLuc Pattyn29-Aug-09 5:37 
GeneralRe: how to connect 9 pin serial port plug to itself so tha one can recive the data in the 2nd Pin andtransmit in 3rd pin Pin
mustang8629-Aug-09 12:21
mustang8629-Aug-09 12:21 
GeneralRe: how to connect 9 pin serial port plug to itself so tha one can recive the data in the 2nd Pin andtransmit in 3rd pin Pin
mustang8629-Aug-09 18:10
mustang8629-Aug-09 18:10 
Questionprogram in c# Pin
ayushibasant28-Aug-09 23:39
ayushibasant28-Aug-09 23:39 
AnswerRe: program in c# Pin
OriginalGriff28-Aug-09 23:50
mveOriginalGriff28-Aug-09 23:50 
AnswerRe: program in c# Pin
Super Lloyd28-Aug-09 23:57
Super Lloyd28-Aug-09 23:57 
AnswerRe: program in c# Pin
Rajesh R Subramanian29-Aug-09 1:20
professionalRajesh R Subramanian29-Aug-09 1:20 
QuestionClose MDI Parent Form Pin
Rahul DSG28-Aug-09 23:06
Rahul DSG28-Aug-09 23:06 

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.