I have used this in the past and have also posted as one of my tip tricks :-}
One tip trick that I still like with
parms.ClassStyle |= 0x200;
parms.ClassStyle = this.Handle.ToInt32();
which will render the form invisible which is much easier than overriding
because you then have to have another
value to ensure the
Event is called.