No problem. Been awhile since I had an app that wouldn't focus, had one or two, but if you get an error try moving the call to the OnShow event.