This was caused by a bug in loForm.ShowDialog() I was using in my startup class. As suggested by Rod Paddock, I am now using Application.Run() and this is working better. The only problem I have now is whenever I minimize, I see a new item in the taskbar that I can't get rid.