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

C#

 
GeneralRe: Writing to screen form Pin
PaulPrice23-Jul-07 7:26
PaulPrice23-Jul-07 7:26 
GeneralRe: Writing to screen form Pin
AndrusM23-Jul-07 23:48
AndrusM23-Jul-07 23:48 
GeneralRe: Writing to screen form Pin
PaulPrice23-Jul-07 23:51
PaulPrice23-Jul-07 23:51 
GeneralRe: Writing to screen form Pin
AndrusM24-Jul-07 5:28
AndrusM24-Jul-07 5:28 
GeneralRe: Writing to screen form Pin
Luc Pattyn24-Jul-07 5:49
sitebuilderLuc Pattyn24-Jul-07 5:49 
GeneralRe: Writing to screen form Pin
AndrusM24-Jul-07 6:49
AndrusM24-Jul-07 6:49 
QuestionInvoke and Form.ShowDialog ? Pin
Eike Mueller23-Jul-07 4:53
Eike Mueller23-Jul-07 4:53 
AnswerRe: Invoke and Form.ShowDialog ? Pin
Luc Pattyn23-Jul-07 5:15
sitebuilderLuc Pattyn23-Jul-07 5:15 
Hi Eike,

if I understand you correctly, you have a main thread and a main form (obviously),
then have some job spun off into another thread, and all of a sudden that job needs
to interact with the user, hence wants to show a dialog, then has to continue with
its job.

I have three comments:

1.
The InvokeRequired/Invoke thing is all right; it operates in a synchronous mode, that is
Invoke will return only when the delegate it calls has finished. So that does not seem
to fit with your observation. I dont know what is wrong.

2.
There are several timer classes. I would recommend you look at the System.Windows.Forms.Timer
since that one fires on the main thread, so you probably would not need the Invoke stuff
at all.

3.
I am not fond of programs that throw modal dialogs at me without me asking them to do that.
If such app's functionality is anything less than exceptional, it will soon end up in
the trash bin.

Hope this helps.



GeneralRe: Invoke and Form.ShowDialog ? Pin
Eike Mueller23-Jul-07 5:42
Eike Mueller23-Jul-07 5:42 
GeneralRe: Invoke and Form.ShowDialog ? Pin
Luc Pattyn23-Jul-07 6:11
sitebuilderLuc Pattyn23-Jul-07 6:11 
GeneralRe: Invoke and Form.ShowDialog ? Pin
Eike Mueller23-Jul-07 21:16
Eike Mueller23-Jul-07 21:16 
GeneralRe: Invoke and Form.ShowDialog ? [modified] Pin
Luc Pattyn23-Jul-07 21:34
sitebuilderLuc Pattyn23-Jul-07 21:34 
QuestionService timeout on startup Pin
__DanC__23-Jul-07 4:14
__DanC__23-Jul-07 4:14 
AnswerRe: Service timeout on startup Pin
Luc Pattyn23-Jul-07 5:33
sitebuilderLuc Pattyn23-Jul-07 5:33 
AnswerRe: Service timeout on startup Pin
PaulPrice23-Jul-07 7:30
PaulPrice23-Jul-07 7:30 
QuestionObject and class in C# Pin
Anmol.Gupta23-Jul-07 3:42
Anmol.Gupta23-Jul-07 3:42 
AnswerRe: Object and class in C# Pin
Luc Pattyn23-Jul-07 3:53
sitebuilderLuc Pattyn23-Jul-07 3:53 
GeneralRe: Object and class in C# Pin
Anmol.Gupta23-Jul-07 4:19
Anmol.Gupta23-Jul-07 4:19 
GeneralRe: Object and class in C# Pin
BoneSoft23-Jul-07 4:34
BoneSoft23-Jul-07 4:34 
GeneralRe: Object and class in C# Pin
Luc Pattyn23-Jul-07 4:35
sitebuilderLuc Pattyn23-Jul-07 4:35 
GeneralRe: Object and class in C# Pin
Anmol.Gupta23-Jul-07 4:43
Anmol.Gupta23-Jul-07 4:43 
GeneralRe: Object and class in C# Pin
Luc Pattyn23-Jul-07 4:57
sitebuilderLuc Pattyn23-Jul-07 4:57 
GeneralRe: Object and class in C# Pin
Anmol.Gupta23-Jul-07 18:51
Anmol.Gupta23-Jul-07 18:51 
AnswerRe: Object and class in C# Pin
Pete O'Hanlon23-Jul-07 4:06
mvePete O'Hanlon23-Jul-07 4:06 
QuestionWindows User Pin
tadhg8823-Jul-07 3:33
tadhg8823-Jul-07 3:33 

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.