Click here to Skip to main content
15,917,506 members
Home / Discussions / C#
   

C#

 
AnswerRe: command.exe double quoted arguments Pin
Luc Pattyn8-Feb-10 16:14
sitebuilderLuc Pattyn8-Feb-10 16:14 
GeneralRe: command.exe double quoted arguments Pin
stmweb8-Feb-10 17:11
stmweb8-Feb-10 17:11 
GeneralRe: command.exe double quoted arguments Pin
Luc Pattyn8-Feb-10 23:47
sitebuilderLuc Pattyn8-Feb-10 23:47 
Questionhow would i filter results on my bindingnavigator when using a stored procedure call with linq? Pin
tonyonlinux8-Feb-10 14:54
tonyonlinux8-Feb-10 14:54 
AnswerRe: how would i filter results on my bindingnavigator when using a stored procedure call with linq? Pin
tonyonlinux9-Feb-10 15:37
tonyonlinux9-Feb-10 15:37 
GeneralRe: how would i filter results on my bindingnavigator when using a stored procedure call with linq? Pin
tonyonlinux9-Feb-10 16:53
tonyonlinux9-Feb-10 16:53 
QuestionCorrect technique for implementating a modal loop Pin
Jim Crafton8-Feb-10 9:00
Jim Crafton8-Feb-10 9:00 
AnswerRe: Correct technique for implementating a modal loop [modified] Pin
Luc Pattyn8-Feb-10 9:13
sitebuilderLuc Pattyn8-Feb-10 9:13 
Hi Jim,

IMO that is a strange question. I've never seen an explicit message loop in managed code.

If I understood your question correctly, this is what I might(*) do:
- main thread starts a BackgroundWorker that does the server communication and waits for results;
- meanwhile main thread shows a dialog explaining what is going on, possibly offering a progress indication, and probably offering a "cancel" button.
- when the BGW decides all is done, or when it gives up, show the final status in the existing dialog and either change the "cancel" button into an "OK" button, or, after 2 seconds, close the dialog (by which action the main thread continues).

(*) the alternative is not having a modal dialog at all (since that blocks the entire app), and use a modeless dialog instead. That of course requires a different synchronization technique, as now the main thread would never wait.

[ADDED]
FYI: this[^] may interest you.
[/ADDED]

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
All Toronto weekends should be extremely wet until we get it automated in regular forums, not just QA.

modified on Monday, February 8, 2010 3:53 PM

Questiondatagridcheckbox in a datagrid Pin
prithaa8-Feb-10 7:06
prithaa8-Feb-10 7:06 
AnswerRe: datagridcheckbox in a datagrid Pin
OriginalGriff8-Feb-10 8:27
mveOriginalGriff8-Feb-10 8:27 
GeneralRe: datagridcheckbox in a datagrid Pin
prithaa8-Feb-10 17:30
prithaa8-Feb-10 17:30 
QuestionSure this has been asked before but can not find answer (c# prototypes) Pin
Andy Braham8-Feb-10 6:16
Andy Braham8-Feb-10 6:16 
AnswerRe: Sure this has been asked before but can not find answer (c# prototypes) Pin
OriginalGriff8-Feb-10 6:27
mveOriginalGriff8-Feb-10 6:27 
GeneralRe: Sure this has been asked before but can not find answer (c# prototypes) Pin
Andy Braham8-Feb-10 7:21
Andy Braham8-Feb-10 7:21 
GeneralRe: Sure this has been asked before but can not find answer (c# prototypes) Pin
Dave Kreskowiak8-Feb-10 7:25
mveDave Kreskowiak8-Feb-10 7:25 
GeneralRe: Sure this has been asked before but can not find answer (c# prototypes) Pin
harold aptroot8-Feb-10 7:40
harold aptroot8-Feb-10 7:40 
GeneralRe: Sure this has been asked before but can not find answer (c# prototypes) Pin
DaveyM698-Feb-10 8:03
professionalDaveyM698-Feb-10 8:03 
AnswerRe: Sure this has been asked before but can not find answer (c# prototypes) Pin
Richard MacCutchan8-Feb-10 6:56
mveRichard MacCutchan8-Feb-10 6:56 
Questionzipping an xml file Pin
Shtel8-Feb-10 4:29
Shtel8-Feb-10 4:29 
AnswerRe: zipping an xml file Pin
musefan8-Feb-10 4:42
musefan8-Feb-10 4:42 
GeneralRe: zipping an xml file Pin
Shtel8-Feb-10 5:01
Shtel8-Feb-10 5:01 
GeneralRe: zipping an xml file Pin
musefan8-Feb-10 5:15
musefan8-Feb-10 5:15 
GeneralRe: zipping an xml file Pin
Shtel8-Feb-10 6:04
Shtel8-Feb-10 6:04 
GeneralRe: zipping an xml file Pin
harold aptroot8-Feb-10 6:44
harold aptroot8-Feb-10 6:44 
GeneralRe: zipping an xml file [modified] Pin
musefan8-Feb-10 7:03
musefan8-Feb-10 7:03 

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.