Re: DoEvents Alternatives

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



the workaround doesn't solve it.
DoEvents makes the program execution loops in the mouse_move event and outs
only if the user clicks on any part of the screen. To solve this situation I
had to disable the mouse_move event on the control itself.


"Bob Butler" <tiredofit@xxxxxxxxxxx> wrote in message
news:%23fbUnqMNHHA.420@xxxxxxxxxxxxxxxxxxxxxxx
"Ahmed Hashish" <a_hashish@xxxxxxxxxxx> wrote in message
news:eBYa%23iMNHHA.320@xxxxxxxxxxxxxxxxxxxx
I don't want to use the DoEvents because it sometimes makes errors
with the transparent usercontrol I created, it causes the execution
enter the mouse_move event
BUG: Phantom MouseMove Events with a Transparent UserControl
(http://support.microsoft.com/kb/192003)

does the workaround provided in that article not solve it? maybe
disabling
that specific control before calling doevents will prevent the problem.
as
a last resort set a flag variable, call doevents and clear the flag and
have
the control ignore any mouse events while the flag is set.

--
Reply to the group so all can participate
VB.Net: "Fool me once..."



.



Relevant Pages

  • Re: Semi-multithreaded application in VB6
    ... where are you doing your DoEvents? ... > intervene except where you yield enough to let a button click get through. ... during those wait times it doesn't make sense to check this flag. ...
    (comp.lang.basic.visual.misc)
  • Re: Semi-multithreaded application in VB6
    ... > during those wait times it doesn't make sense to check this flag. ... I presume your point is true for timer events as well. ... the timer control event won't fire until you call DoEvents or the current ... progress and allow cancelling. ...
    (comp.lang.basic.visual.misc)
  • Re: How to escape out of a loop
    ... doevents in VisualBasic or VBA will not stop a loop at any ... We get the same functionality by the settimer called subs. ... can then change the Boolean flag variable. ...
    (microsoft.public.scripting.vbscript)
  • Re: How to escape out of a loop
    ... doevents in VisualBasic or VBA will not stop a loop at any ... We get the same functionality by the settimer called subs. ... can then change the Boolean flag variable. ...
    (microsoft.public.scripting.vbscript)