Click here to Skip to main content
       

Visual Basic

 
QuestionRestoring sql database using vb 2008 not c# PinmemberMathiudi27-Feb-13 7:49 
AnswerRe: Restoring sql database using vb 2008 not c# PinmvpSandeep Mewara27-Feb-13 18:15 
QuestionIdentifying the end of an event? Pinmemberjonatasbm26-Feb-13 6:10 
AnswerRe: Identifying the end of an event? PinmvpDave Kreskowiak26-Feb-13 7:08 
GeneralRe: Identifying the end of an event? Pinmemberjonatasbm26-Feb-13 7:42 
GeneralRe: Identifying the end of an event? PinmvpDave Kreskowiak26-Feb-13 9:08 
GeneralRe: Identifying the end of an event? Pinmemberjonatasbm27-Feb-13 0:10 
GeneralRe: Identifying the end of an event? PinmvpDave Kreskowiak27-Feb-13 1:18 
OK, you didn't get it. There is NO other code after the call to MyOtherMethod. That is the last thing that happens inside the event handler.
 
I serisouly doubt you need to go call some method, then have it wait on the rest of the code in the handler to finish. It WILL NOT ever finish until the method you called finishes itself.
 
It sounds as though you need to restructure what you're doing, synchronously, to avoid this situation. When you make a method call, the code that does the calling does NOT continue to run while the method is executing. The calling code completely stops and waits for the method called to return. This is called a "blocking call".
 
Also, event handlers should return inside of about 250 milliseconds. While your event handler code is exectuing, your UI is copmletely hung waiting for it. The user cannot click on anything in your app until the handler returns.
 
But, in any case, the ONLY way to do what you describe to is use threading and a WaitHandle to signal the other thread. So, your event handler gets called, and in it you kick off another thread.
 
What are you doing that you think you need to do this??

QuestionWeb interface to access application Pinmemberwaner michaud25-Feb-13 7:16 
AnswerRe: Web interface to access application PinmvpSandeep Mewara25-Feb-13 18:08 
GeneralRe: Web interface to access application Pinmemberwaner michaud26-Feb-13 3:13 
QuestionRe: Web interface to access application PinmvpSandeep Mewara26-Feb-13 3:16 
AnswerRe: Web interface to access application Pinmemberwaner michaud26-Feb-13 3:19 
AnswerRe: Web interface to access application Pinmemberwaner michaud26-Feb-13 5:40 
GeneralRe: Web interface to access application PinmvpSandeep Mewara26-Feb-13 5:52 
GeneralRe: Web interface to access application Pinmemberwaner michaud26-Feb-13 6:54 
AnswerRe: Web interface to access application PinmvpEddy Vluggen26-Feb-13 9:25 
QuestionListbox String to RichTextbox. Help Please! PinmemberJanko199322-Feb-13 17:14 
AnswerRe: Listbox String to RichTextbox. Help Please! PinmvpRichard MacCutchan22-Feb-13 23:21 
AnswerRe: Listbox String to RichTextbox. Help Please! PinmemberTnTinMN24-Feb-13 13:24 
GeneralRe: Listbox String to RichTextbox. Help Please! PinmemberGray_Ang3l24-Feb-13 13:29 
QuestionActive Directory Users OU Pinmemberdsj4122-Feb-13 8:14 
AnswerRe: Active Directory Users OU PinmvpDave Kreskowiak22-Feb-13 8:45 
GeneralRe: Active Directory Users OU Pinmemberdsj4124-Feb-13 11:20 
GeneralRe: Active Directory Users OU PinmvpDave Kreskowiak25-Feb-13 10:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 17 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid