I haven't posted in a while... this is an unpolished proof of concept I had fun with for a moment.
I hope it works, I hope it helps, I hope it's simple enough
See if changing this code in the MouseMove events helps:
Code:
' ...
If Not strText = "Enter the last name" Then
strText = "Enter the last name"
Me.lblInfo.Caption = strText
DoEvents
If IsTTSEnabled Then voc... etc
End If
' ...
It might not help, but can't hurt to try. The MouseMove event fires repeatedly and can tax your processor even if it doesn't raise the error you saw.
(All this would be better coded into a separate function (or class) to avoid having to repeat in each MouseMove event.)
I'm sorry. I promised to test as soon as I'm back to my desk, but unfortunately couldn't test your code until the evening.
I used your code. The situation is much better, but still every now and then I receive the same error. I really can't find a specific rule when it happens. Sometimes it occurs even if I'm moving the mouse very slowly.
Since it's a stack call error, I assume something happening behind the scene that calls the same function over and over.
Note :
I don't intend to use this method. I was just watching the offered video and testing. No need to put your time to solve the problem.
Again thanks.