rudicronje,
Disregard my previous post, I was able to convert the VB.NET code to C# myself.
Ryan,
I am getting an error when trying to use your code. I get a Microsoft JScript runtime error: Object doesn't support this property or method.
Code that is highlighted in yellow:
window.top.Events_CreateEvent("213", "FakeEvent", null, true);...
I have the VWG_DisableObscuringSwitch set to 1. Any help appreciated...