Click here to Skip to main content
15,906,766 members
Home / Discussions / C#
   

C#

 
AnswerRe: passing array of doubles Pin
__John_28-Mar-12 23:06
__John_28-Mar-12 23:06 
GeneralRe: passing array of doubles Pin
DaveyM6929-Mar-12 2:46
professionalDaveyM6929-Mar-12 2:46 
AnswerRe: passing array of doubles Pin
Henry Minute29-Mar-12 4:38
Henry Minute29-Mar-12 4:38 
Questionruntime change into database Pin
Member 823360127-Mar-12 19:57
Member 823360127-Mar-12 19:57 
AnswerRe: runtime change into database Pin
Richard MacCutchan27-Mar-12 22:25
mveRichard MacCutchan27-Mar-12 22:25 
AnswerRe: runtime change into database Pin
Eddy Vluggen28-Mar-12 7:14
professionalEddy Vluggen28-Mar-12 7:14 
GeneralRe: runtime change into database Pin
Member 823360129-Mar-12 19:12
Member 823360129-Mar-12 19:12 
QuestionHow to make 64-bit registry writable in 32-bit application Pin
gshen27-Mar-12 13:55
gshen27-Mar-12 13:55 
AnswerRe: How to make 64-bit registry writable in 32-bit application Pin
Richard Andrew x6427-Mar-12 14:44
professionalRichard Andrew x6427-Mar-12 14:44 
GeneralRe: How to make 64-bit registry writable in 32-bit application Pin
gshen28-Mar-12 14:02
gshen28-Mar-12 14:02 
QuestionCopying/replacing a file in the system dir? Pin
Muammar©27-Mar-12 1:23
Muammar©27-Mar-12 1:23 
AnswerRe: Copying/replacing a file in the system dir? Pin
Pete O'Hanlon27-Mar-12 1:35
mvePete O'Hanlon27-Mar-12 1:35 
GeneralRe: Copying/replacing a file in the system dir? Pin
Vipin_Arora27-Mar-12 2:56
Vipin_Arora27-Mar-12 2:56 
AnswerRe: Copying/replacing a file in the system dir? Pin
Vipin_Arora27-Mar-12 2:58
Vipin_Arora27-Mar-12 2:58 
AnswerRe: Copying/replacing a file in the system dir? Pin
Eddy Vluggen27-Mar-12 5:17
professionalEddy Vluggen27-Mar-12 5:17 
QuestionBypass Windows Message other than Open & Close Pin
varunpandeyengg26-Mar-12 22:25
varunpandeyengg26-Mar-12 22:25 
AnswerRe: Bypass Windows Message other than Open & Close Pin
Mycroft Holmes26-Mar-12 22:29
professionalMycroft Holmes26-Mar-12 22:29 
GeneralRe: Bypass Windows Message other than Open & Close Pin
varunpandeyengg26-Mar-12 22:46
varunpandeyengg26-Mar-12 22:46 
GeneralRe: Bypass Windows Message other than Open & Close Pin
N a v a n e e t h27-Mar-12 1:20
N a v a n e e t h27-Mar-12 1:20 
AnswerRe: Bypass Windows Message other than Open & Close Pin
Luc Pattyn27-Mar-12 2:22
sitebuilderLuc Pattyn27-Mar-12 2:22 
That is a bad idea. As others have said, your long operation needs to move to another thread. There are a couple of ways to do that, the best choice depends on the operations. What is it you are doing? How long does it take, and how often does your code need to access the GUI in that time?

BTW1: I don't use Control.BeginInvoke(); when I need invoking, I use Control.Invoke().

BTW2: IMO a long operation needs a way to get cancelled (the user sits there waiting and has the time to change his mind); and a progress bar is also nice to have. These are additional reasons to do things properly, i.e. with an extra thread.

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

QuestionI'll download program of PKI C#(asp.net),who can tell me the url? Pin
Jack Li26-Mar-12 21:59
Jack Li26-Mar-12 21:59 
AnswerRe: I'll download program of PKI C#(asp.net),who can tell me the url? Pin
Pete O'Hanlon26-Mar-12 22:10
mvePete O'Hanlon26-Mar-12 22:10 
GeneralRe: I'll download program of PKI C#(asp.net),who can tell me the url? Pin
Mycroft Holmes26-Mar-12 22:32
professionalMycroft Holmes26-Mar-12 22:32 
GeneralRe: I'll download program of PKI C#(asp.net),who can tell me the url? Pin
Pete O'Hanlon26-Mar-12 22:48
mvePete O'Hanlon26-Mar-12 22:48 
JokeRe: I'll download program of PKI C#(asp.net),who can tell me the url? Pin
Manfred Rudolf Bihy27-Mar-12 3:50
professionalManfred Rudolf Bihy27-Mar-12 3:50 

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.