Click here to Skip to main content
12,360,642 members (55,334 online)

Visual Basic

 
QuestionRestoring sql database using vb 2008 not c# Pin
Mathiudi27-Feb-13 7:49
memberMathiudi27-Feb-13 7:49 
AnswerRe: Restoring sql database using vb 2008 not c# Pin
Sandeep Mewara27-Feb-13 18:15
mvpSandeep Mewara27-Feb-13 18:15 
QuestionIdentifying the end of an event? Pin
jonatasbm26-Feb-13 6:10
memberjonatasbm26-Feb-13 6:10 
AnswerRe: Identifying the end of an event? Pin
Dave Kreskowiak26-Feb-13 7:08
mvpDave Kreskowiak26-Feb-13 7:08 
GeneralRe: Identifying the end of an event? Pin
jonatasbm26-Feb-13 7:42
memberjonatasbm26-Feb-13 7:42 
GeneralRe: Identifying the end of an event? Pin
Dave Kreskowiak26-Feb-13 9:08
mvpDave Kreskowiak26-Feb-13 9:08 
GeneralRe: Identifying the end of an event? Pin
jonatasbm27-Feb-13 0:10
memberjonatasbm27-Feb-13 0:10 
GeneralRe: Identifying the end of an event? Pin
Dave Kreskowiak27-Feb-13 1:18
mvpDave 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 Pin
waner michaud25-Feb-13 7:16
memberwaner michaud25-Feb-13 7:16 
AnswerRe: Web interface to access application Pin
Sandeep Mewara25-Feb-13 18:08
mvpSandeep Mewara25-Feb-13 18:08 
GeneralRe: Web interface to access application Pin
waner michaud26-Feb-13 3:13
memberwaner michaud26-Feb-13 3:13 
QuestionRe: Web interface to access application Pin
Sandeep Mewara26-Feb-13 3:16
mvpSandeep Mewara26-Feb-13 3:16 
AnswerRe: Web interface to access application Pin
waner michaud26-Feb-13 3:19
memberwaner michaud26-Feb-13 3:19 
AnswerRe: Web interface to access application Pin
waner michaud26-Feb-13 5:40
memberwaner michaud26-Feb-13 5:40 
GeneralRe: Web interface to access application Pin
Sandeep Mewara26-Feb-13 5:52
mvpSandeep Mewara26-Feb-13 5:52 
GeneralRe: Web interface to access application Pin
waner michaud26-Feb-13 6:54
memberwaner michaud26-Feb-13 6:54 
AnswerRe: Web interface to access application Pin
Eddy Vluggen26-Feb-13 9:25
mvpEddy Vluggen26-Feb-13 9:25 
QuestionListbox String to RichTextbox. Help Please! Pin
Janko199322-Feb-13 17:14
memberJanko199322-Feb-13 17:14 
AnswerRe: Listbox String to RichTextbox. Help Please! Pin
Richard MacCutchan22-Feb-13 23:21
mvpRichard MacCutchan22-Feb-13 23:21 
AnswerRe: Listbox String to RichTextbox. Help Please! Pin
TnTinMN24-Feb-13 13:24
memberTnTinMN24-Feb-13 13:24 
GeneralRe: Listbox String to RichTextbox. Help Please! Pin
Gray_Ang3l24-Feb-13 13:29
memberGray_Ang3l24-Feb-13 13:29 
QuestionActive Directory Users OU Pin
dsj4122-Feb-13 8:14
memberdsj4122-Feb-13 8:14 
AnswerRe: Active Directory Users OU Pin
Dave Kreskowiak22-Feb-13 8:45
mvpDave Kreskowiak22-Feb-13 8:45 
GeneralRe: Active Directory Users OU Pin
dsj4124-Feb-13 11:20
memberdsj4124-Feb-13 11:20 
GeneralRe: Active Directory Users OU Pin
Dave Kreskowiak25-Feb-13 10:31
mvpDave Kreskowiak25-Feb-13 10:31 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160621.1 | Last Updated 1 Jul 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid