Click here to Skip to main content
15,905,967 members
Home / Discussions / C#
   

C#

 
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 
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 
Hi Eike,

I have no experience with Compact Framework, I expect the subset it offers works the same
as on the classic Framework.

Manage all the forms from inside the main form (or possibly the static Main method)
seems the right approach.

If the timer's main job is GUI stuff, Forms.Timer is the right one.
If you were to use Forms.Timer and have its Tick handler create and ShowDialog() the
dialog, I am confident the main form would come to a halt until you close the dialog.
The behavior you describe is unfamiliar to me. Normally Application.Run() starts your
first message pump, the loop that keeps your GUI active. Calling ShowDialog() creates
a new message pump, that now gets all the messages, until the dialog gets closed.
You can interfere a bit by calling Application.DoEvents() but that is not recommended
in general (I use it only to restore a GUI after closing a dialog, when a short action
is to be executed on the main thread but you dont want to see the damaged GUI that long).

Did you by any chance try it also as a regular app on classic FrameWork ?

Smile | :)


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 
AnswerRe: Windows User Pin
tadhg8831-Jul-07 6:15
tadhg8831-Jul-07 6:15 
QuestionHow to Add a Satlite Assembly in Runtime Pin
Prajin23-Jul-07 3:27
Prajin23-Jul-07 3:27 

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.