Stopping the use of enableevents

  • Thread starter Thread starter Steven Revell
  • Start date Start date
S

Steven Revell

Hi,

I want to stop a user being able to turn off enableevents.

i.e. application.enableevents = false

is it possible?

Cheers, Steven
 
It may be of some use to you to know that ActiveX controls (from the
Controls toolbox) are unaffected by Application.EnableEvents i.e.
their events still fire when False.

To exploit this, for example, you could have an invisible Image object
large enough to cover the user's part of the screen and set
Application.EnableEvents=True in its MouseMove event (hint:
additionally make the control invisible in its MouseDown event).
 
onedaywhen said:
It may be of some use to you to know that ActiveX controls (from the
Controls toolbox) are unaffected by Application.EnableEvents i.e.
their events still fire when False.

To exploit this, for example, you could have an invisible Image object
large enough to cover the user's part of the screen and set
Application.EnableEvents=True in its MouseMove event (hint:
additionally make the control invisible in its MouseDown event).
....

Meaning there's no way to prevent this being used to propagate macro
viruses? Well, it's not like I expected any security from Microsoft products
.. . .
 
Back
Top