Home > Software engineering >  The operation mechanism of VB control incident
The operation mechanism of VB control incident

Time:09-15

I want to ask you a different vb controls events exist in parallel operation?
Like mshflexgrid leavecell and text lostfocus events, when I click on the form of different positions, as the two events will trigger together, because after I joined the time delay function can lead to different results,

CodePudding user response:

Is there any statement can make an event to complete before?

CodePudding user response:

Depending on different situations, if some controls with the thread, the trigger at the same time it is also possible, if all are the same as a main thread, you should not run in parallel,

CodePudding user response:

QQ, 527524938, can add me

CodePudding user response:

refer to focus on the second floor 15 years of VB programming development reply:
depending on different situations, if some controls with the thread, the trigger at the same time it is also possible, if all are the same as a main thread, should not be run in parallel,

Problems found, call delay function will be run in parallel phenomenon,
Public sub waittime (delay!
Dim starttime!
Starttime=timer
Do until (timer - starttime) & gt; Delay
Do the events
Loop
End sub
What's the problem with the time delay function?

CodePudding user response:

refer to focus on the second floor 15 years of VB programming development reply:
depending on different situations, if some controls with the thread, the trigger at the same time it is also possible, if all are the same as a main thread, should not be run in parallel,

Doevents problems with sleep function
  • Related