Click here to Skip to main content
15,897,187 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: I'll download program of PKI C#(asp.net),who can tell me the url? Pin
Pete O'Hanlon27-Mar-12 4:34
mvePete O'Hanlon27-Mar-12 4:34 
AnswerRe: I'll download program of PKI C#(asp.net),who can tell me the url? Pin
Luc Pattyn27-Mar-12 4:36
sitebuilderLuc Pattyn27-Mar-12 4:36 
GeneralRe: I'll download program of PKI C#(asp.net),who can tell me the url? Pin
Pete O'Hanlon27-Mar-12 4:52
mvePete O'Hanlon27-Mar-12 4:52 
QuestionRe: I'll download program of PKI C#(asp.net),who can tell me the url? Pin
Luc Pattyn27-Mar-12 4:57
sitebuilderLuc Pattyn27-Mar-12 4:57 
GeneralRe: I'll download program of PKI C#(asp.net),who can tell me the url? Pin
Luc Pattyn27-Mar-12 4:59
sitebuilderLuc Pattyn27-Mar-12 4:59 
GeneralRe: I'll download program of PKI C#(asp.net),who can tell me the url? Pin
Lutosław27-Mar-12 10:48
Lutosław27-Mar-12 10:48 
AnswerRe: I'll download program of PKI C#(asp.net),who can tell me the url? Pin
vinodh pemmasani27-Mar-12 21:14
vinodh pemmasani27-Mar-12 21:14 
AnswerRe: I'll download program of PKI C#(asp.net),who can tell me the url? Pin
Jack Li29-Mar-12 23:57
Jack Li29-Mar-12 23:57 
QuestionProject Information Pin
priyanka kulkarni26-Mar-12 21:17
priyanka kulkarni26-Mar-12 21:17 
AnswerRe: Project Information Pin
Pete O'Hanlon26-Mar-12 22:01
mvePete O'Hanlon26-Mar-12 22:01 
AnswerRe: Project Information Pin
Vipin_Arora26-Mar-12 23:20
Vipin_Arora26-Mar-12 23:20 
AnswerRe: Project Information Pin
Abhinav S26-Mar-12 23:25
Abhinav S26-Mar-12 23:25 

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.