Click here to Skip to main content
15,881,380 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRestoring sql database using vb 2008 not c# Pin
Mathiudi27-Feb-13 7:49
Mathiudi27-Feb-13 7:49 
AnswerRe: Restoring sql database using vb 2008 not c# Pin
Sandeep Mewara27-Feb-13 18:15
mveSandeep Mewara27-Feb-13 18:15 
QuestionIdentifying the end of an event? Pin
jonatasbm26-Feb-13 6:10
jonatasbm26-Feb-13 6:10 
AnswerRe: Identifying the end of an event? Pin
Dave Kreskowiak26-Feb-13 7:08
mveDave Kreskowiak26-Feb-13 7:08 
GeneralRe: Identifying the end of an event? Pin
jonatasbm26-Feb-13 7:42
jonatasbm26-Feb-13 7:42 
GeneralRe: Identifying the end of an event? Pin
Dave Kreskowiak26-Feb-13 9:08
mveDave Kreskowiak26-Feb-13 9:08 
GeneralRe: Identifying the end of an event? Pin
jonatasbm27-Feb-13 0:10
jonatasbm27-Feb-13 0:10 
GeneralRe: Identifying the end of an event? Pin
Dave Kreskowiak27-Feb-13 1:18
mveDave 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
waner michaud25-Feb-13 7:16 
AnswerRe: Web interface to access application Pin
Sandeep Mewara25-Feb-13 18:08
mveSandeep Mewara25-Feb-13 18:08 
GeneralRe: Web interface to access application Pin
waner michaud26-Feb-13 3:13
waner michaud26-Feb-13 3:13 
QuestionRe: Web interface to access application Pin
Sandeep Mewara26-Feb-13 3:16
mveSandeep Mewara26-Feb-13 3:16 
AnswerRe: Web interface to access application Pin
waner michaud26-Feb-13 3:19
waner michaud26-Feb-13 3:19 
AnswerRe: Web interface to access application Pin
waner michaud26-Feb-13 5:40
waner michaud26-Feb-13 5:40 
GeneralRe: Web interface to access application Pin
Sandeep Mewara26-Feb-13 5:52
mveSandeep Mewara26-Feb-13 5:52 
GeneralRe: Web interface to access application Pin
waner michaud26-Feb-13 6:54
waner michaud26-Feb-13 6:54 
AnswerRe: Web interface to access application Pin
Eddy Vluggen26-Feb-13 9:25
professionalEddy Vluggen26-Feb-13 9:25 
QuestionListbox String to RichTextbox. Help Please! Pin
Gray_Ang3l22-Feb-13 17:14
Gray_Ang3l22-Feb-13 17:14 
AnswerRe: Listbox String to RichTextbox. Help Please! Pin
Richard MacCutchan22-Feb-13 23:21
mveRichard MacCutchan22-Feb-13 23:21 
AnswerRe: Listbox String to RichTextbox. Help Please! Pin
Flintstone-Fred24-Feb-13 13:24
Flintstone-Fred24-Feb-13 13:24 
GeneralRe: Listbox String to RichTextbox. Help Please! Pin
Gray_Ang3l24-Feb-13 13:29
Gray_Ang3l24-Feb-13 13:29 
QuestionMessage Removed Pin
22-Feb-13 11:13
DougsSoftware22-Feb-13 11:13 
QuestionActive Directory Users OU Pin
dsj4122-Feb-13 8:14
dsj4122-Feb-13 8:14 
AnswerRe: Active Directory Users OU Pin
Dave Kreskowiak22-Feb-13 8:45
mveDave Kreskowiak22-Feb-13 8:45 
GeneralRe: Active Directory Users OU Pin
dsj4124-Feb-13 11:20
dsj4124-Feb-13 11:20 

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.