Kent, I had to re-copy and re-register the KiXforms dll and it worked. The DOS screen is probably because of the .Topmost property call.