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

C#

 
Questioncannot connect to server(web service for pocket PC) Pin
Khaled Mahmoud17-Feb-06 10:58
Khaled Mahmoud17-Feb-06 10:58 
QuestionCant add a Web Reference Pin
DocH0liday17-Feb-06 10:50
DocH0liday17-Feb-06 10:50 
QuestionEquilizer Problem Pin
snouto17-Feb-06 7:30
snouto17-Feb-06 7:30 
QuestionC# to UML Pin
hg270517-Feb-06 7:15
hg270517-Feb-06 7:15 
AnswerRe: C# to UML Pin
Insincere Dave17-Feb-06 7:57
Insincere Dave17-Feb-06 7:57 
QuestionDetermining Upload Speeds In C# Pin
mcmcom17-Feb-06 6:46
mcmcom17-Feb-06 6:46 
AnswerRe: Determining Upload Speeds In C# Pin
Guffa17-Feb-06 10:02
Guffa17-Feb-06 10:02 
Questionload 3d object into form Pin
de_Oracle17-Feb-06 6:07
de_Oracle17-Feb-06 6:07 
AnswerRe: load 3d object into form Pin
Judah Gabriel Himango17-Feb-06 10:20
sponsorJudah Gabriel Himango17-Feb-06 10:20 
Question2 Simple quastions Pin
ytubis17-Feb-06 6:04
ytubis17-Feb-06 6:04 
AnswerRe: 2 Simple quastions Pin
Dave Kreskowiak17-Feb-06 10:20
mveDave Kreskowiak17-Feb-06 10:20 
Questionhow to use progressbar for long operation ? Pin
hdv21217-Feb-06 5:14
hdv21217-Feb-06 5:14 
AnswerRe: how to use progressbar for long operation ? Pin
mcmcom17-Feb-06 9:38
mcmcom17-Feb-06 9:38 
QuestionOpen File Pin
tanishq151017-Feb-06 5:14
tanishq151017-Feb-06 5:14 
AnswerRe: Open File Pin
KaptinKrunch17-Feb-06 6:07
KaptinKrunch17-Feb-06 6:07 
AnswerRe: Open File Pin
Somanova42017-Feb-06 6:38
Somanova42017-Feb-06 6:38 
QuestionSystem.Transaction , please Pin
faviochilo17-Feb-06 4:55
faviochilo17-Feb-06 4:55 
AnswerRe: System.Transaction , please Pin
Judah Gabriel Himango17-Feb-06 10:22
sponsorJudah Gabriel Himango17-Feb-06 10:22 
GeneralRe: System.Transaction , please Pin
faviochilo18-Feb-06 14:09
faviochilo18-Feb-06 14:09 
QuestionIP Address to System.Byte Pin
Ariston Darmayuda17-Feb-06 4:52
Ariston Darmayuda17-Feb-06 4:52 
AnswerRe: IP Address to System.Byte Pin
Judah Gabriel Himango17-Feb-06 10:23
sponsorJudah Gabriel Himango17-Feb-06 10:23 
AnswerRe: IP Address to System.Byte Pin
Guffa17-Feb-06 12:22
Guffa17-Feb-06 12:22 
QuestionThread.Sleep Executing at Wrong Time Pin
redfish3417-Feb-06 4:35
redfish3417-Feb-06 4:35 
AnswerRe: Thread.Sleep Executing at Wrong Time Pin
Dave Kreskowiak17-Feb-06 5:35
mveDave Kreskowiak17-Feb-06 5:35 
GeneralRe: Thread.Sleep Executing at Wrong Time Pin
redfish3417-Feb-06 19:09
redfish3417-Feb-06 19:09 
"I do not know until i know." --famous philosopher

You suggestion works! Your explanation makes it clear that the SendKeys class is sending new events to the MainForm, thus explaining the delay. I was just blind to it. I see the following things happening:

--Mainform function starts execution;
--SendKeys sends keypresses; new events are stored in execution cue;
--Thread.Sleep is executed;
--SendKeys sends keypresses; new events are stored in execution cue;
--Rest of Mainform function is executed;
--Form receives and handles newly made SendKeys events;

From what i read about DoEvents, it seems to make a form multi-threaded somewhat- frees up the UI during execution. Just like the good ole days of VB6!


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.