Click here to Skip to main content
15,921,452 members
Home / Discussions / C#
   

C#

 
AnswerRe: How can I flush events in .Net? Pin
Not Active28-Dec-07 10:44
mentorNot Active28-Dec-07 10:44 
GeneralRe: How can I flush events in .Net? Pin
JoeRip28-Dec-07 14:43
JoeRip28-Dec-07 14:43 
GeneralRe: How can I flush events in .Net? Pin
Luc Pattyn29-Dec-07 2:15
sitebuilderLuc Pattyn29-Dec-07 2:15 
GeneralRe: How can I flush events in .Net? Pin
JoeRip29-Dec-07 2:26
JoeRip29-Dec-07 2:26 
GeneralRe: How can I flush events in .Net? Pin
Luc Pattyn29-Dec-07 2:47
sitebuilderLuc Pattyn29-Dec-07 2:47 
GeneralRe: How can I flush events in .Net? Pin
JoeRip29-Dec-07 2:54
JoeRip29-Dec-07 2:54 
GeneralRe: How can I flush events in .Net? Pin
Mark Churchill30-Dec-07 16:08
Mark Churchill30-Dec-07 16:08 
GeneralRe: How can I flush events in .Net? Pin
JoeRip30-Dec-07 19:41
JoeRip30-Dec-07 19:41 
All arguments aside, here's an odd behavior: Application.DoEvents() basically does the flush for me.

If I do this:

myForm.Enabled = false;
COMServerObject foo = new COMServerObject();
Application.DoEvents();
myForm.Enabled = true;

Then the queued clicks on the titlebar/closebox/minimize box, etc, do NOT get received by my app. If I reverse the order of the last two statement (enable the form, then call DoEvents()), then the messages DO get received by my app. Weird.

Noted just for interest. Not advocating this as a method to flush events.
QuestionAny query???? Pin
omegazafer28-Dec-07 10:02
omegazafer28-Dec-07 10:02 
AnswerRe: Any query???? [modified] Pin
GuyThiebaut28-Dec-07 10:20
professionalGuyThiebaut28-Dec-07 10:20 
GeneralRe: Any query???? Pin
omegazafer28-Dec-07 11:10
omegazafer28-Dec-07 11:10 
GeneralRe: Any query???? Pin
GuyThiebaut28-Dec-07 11:18
professionalGuyThiebaut28-Dec-07 11:18 
GeneralRe: Any query???? Pin
omegazafer28-Dec-07 11:32
omegazafer28-Dec-07 11:32 
GeneralAccessing folder from outlook express 2003 with C# 1.1 Pin
Het210928-Dec-07 8:19
Het210928-Dec-07 8:19 
GeneralRe: Accessing folder from outlook express 2003 with C# 1.1 Pin
KaptinKrunch28-Dec-07 8:59
KaptinKrunch28-Dec-07 8:59 
GeneralRe: Accessing folder from outlook express 2003 with C# 1.1 Pin
Het210928-Dec-07 9:05
Het210928-Dec-07 9:05 
GeneralRe: Accessing folder from outlook express 2003 with C# 1.1 Pin
KaptinKrunch28-Dec-07 9:15
KaptinKrunch28-Dec-07 9:15 
GeneralRe: Accessing folder from outlook express 2003 with C# 1.1 Pin
Het210928-Dec-07 9:28
Het210928-Dec-07 9:28 
GeneralRe: Accessing folder from outlook express 2003 with C# 1.1 Pin
KaptinKrunch28-Dec-07 9:38
KaptinKrunch28-Dec-07 9:38 
GeneralRe: Accessing folder from outlook express 2003 with C# 1.1 Pin
Het210928-Dec-07 9:41
Het210928-Dec-07 9:41 
GeneralRe: Accessing folder from outlook express 2003 with C# 1.1 Pin
KaptinKrunch28-Dec-07 10:07
KaptinKrunch28-Dec-07 10:07 
GeneralRe: Accessing folder from outlook express 2003 with C# 1.1 Pin
Het210928-Dec-07 10:31
Het210928-Dec-07 10:31 
GeneralCheckbox should delete any childnode but not the root node. Can someone please help?? [modified] Pin
T4AMD28-Dec-07 8:18
T4AMD28-Dec-07 8:18 
GeneralRe: Checkbox should delete any childnode but not the root node. Can someone please help?? Pin
KaptinKrunch28-Dec-07 8:36
KaptinKrunch28-Dec-07 8:36 
GeneralRe: Checkbox should delete any childnode but not the root node. Can someone please help?? Pin
T4AMD28-Dec-07 8:54
T4AMD28-Dec-07 8:54 

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.