Click here to Skip to main content
15,917,793 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VBScript Recordset Caching Pin
Feurich4-Mar-13 20:17
Feurich4-Mar-13 20:17 
Questionarduino uno+Visual basic 6.0 Pin
arunsachin3-Mar-13 22:56
arunsachin3-Mar-13 22:56 
AnswerRe: arduino uno+Visual basic 6.0 Pin
Dave Kreskowiak4-Mar-13 1:30
mveDave Kreskowiak4-Mar-13 1:30 
AnswerRe: arduino uno+Visual basic 6.0 Pin
Eddy Vluggen4-Mar-13 8:50
professionalEddy Vluggen4-Mar-13 8:50 
Questioncalling OSK.exe from Vb.6 Pin
lovelushaha2-Mar-13 20:20
lovelushaha2-Mar-13 20:20 
AnswerRe: calling OSK.exe from Vb.6 Pin
Eddy Vluggen3-Mar-13 0:35
professionalEddy Vluggen3-Mar-13 0:35 
QuestionVisual Basic to launch Silverlight OOB with variables Pin
ChrisDuti28-Feb-13 4:30
ChrisDuti28-Feb-13 4:30 
AnswerRe: Visual Basic to launch Silverlight OOB with variables Pin
Eddy Vluggen28-Feb-13 5:03
professionalEddy Vluggen28-Feb-13 5:03 
GeneralRe: Visual Basic to launch Silverlight OOB with variables Pin
ChrisDuti28-Feb-13 5:28
ChrisDuti28-Feb-13 5:28 
GeneralRe: Visual Basic to launch Silverlight OOB with variables Pin
ChrisDuti28-Feb-13 6:57
ChrisDuti28-Feb-13 6:57 
GeneralRe: Visual Basic to launch Silverlight OOB with variables Pin
Eddy Vluggen28-Feb-13 9:21
professionalEddy Vluggen28-Feb-13 9:21 
QuestionCreating Tables,Triggers, and Store porcedure Pin
Mathiudi27-Feb-13 7:52
Mathiudi27-Feb-13 7:52 
AnswerRe: Creating Tables,Triggers, and Store porcedure Pin
Sandeep Mewara27-Feb-13 18:14
mveSandeep Mewara27-Feb-13 18:14 
AnswerRe: Creating Tables,Triggers, and Store porcedure Pin
Bert Mitton28-Feb-13 6:37
professionalBert Mitton28-Feb-13 6:37 
AnswerRe: Creating Tables,Triggers, and Store porcedure Pin
Abhinav S28-Feb-13 19:01
Abhinav S28-Feb-13 19:01 
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 

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.