it didn't work until I added the sendkeys.

the form just blinked in the task bar until a key was pressed or the user clicked the form