Click here to Skip to main content
15,922,696 members
Home / Discussions / C#
   

C#

 
QuestionAdd CSS to XML with XMLWriter Pin
error140823-Jul-07 4:56
error140823-Jul-07 4:56 
AnswerRe: Add CSS to XML with XMLWriter Pin
Pete O'Hanlon23-Jul-07 5:06
mvePete O'Hanlon23-Jul-07 5:06 
GeneralRe: Add CSS to XML with XMLWriter Pin
error140823-Jul-07 5:16
error140823-Jul-07 5:16 
GeneralRe: Add CSS to XML with XMLWriter Pin
BoneSoft23-Jul-07 5:23
BoneSoft23-Jul-07 5:23 
GeneralRe: Add CSS to XML with XMLWriter Pin
error140823-Jul-07 5:25
error140823-Jul-07 5:25 
QuestionWriting to screen form Pin
AndrusM23-Jul-07 4:54
AndrusM23-Jul-07 4:54 
AnswerRe: Writing to screen form Pin
Bert delaVega23-Jul-07 5:22
Bert delaVega23-Jul-07 5:22 
GeneralRe: Writing to screen form Pin
AndrusM23-Jul-07 5:35
AndrusM23-Jul-07 5:35 
GeneralRe: Writing to screen form Pin
Bert delaVega23-Jul-07 6:14
Bert delaVega23-Jul-07 6:14 
AnswerRe: Writing to screen form Pin
Luc Pattyn23-Jul-07 5:29
sitebuilderLuc Pattyn23-Jul-07 5:29 
GeneralRe: Writing to screen form Pin
AndrusM23-Jul-07 5:55
AndrusM23-Jul-07 5:55 
GeneralRe: Writing to screen form Pin
Luc Pattyn23-Jul-07 6:21
sitebuilderLuc Pattyn23-Jul-07 6:21 
GeneralRe: Writing to screen form Pin
AndrusM23-Jul-07 6:27
AndrusM23-Jul-07 6:27 
GeneralRe: Writing to screen form Pin
Luc Pattyn23-Jul-07 6:35
sitebuilderLuc Pattyn23-Jul-07 6:35 
GeneralRe: Writing to screen form Pin
AndrusM23-Jul-07 6:53
AndrusM23-Jul-07 6:53 
GeneralRe: Writing to screen form Pin
Luc Pattyn23-Jul-07 7:08
sitebuilderLuc Pattyn23-Jul-07 7:08 
GeneralRe: Writing to screen form Pin
AndrusM23-Jul-07 23:45
AndrusM23-Jul-07 23:45 
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.



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.