I have a .Net 4 Windows Forms project with Visual Studio 2010 using c#.
I have a FormProduct and FormSearch. When I launch FormProduct I want it to show FormSearch and for the focus to be on FormSearch. I have tried this in the constructor of FormProduct but while FormSearch is displayed the focus goes to FormProduct. I suspect I am opening the form too early but I'm not sure which event to use instead.
Once opened how can I test to be sure the form is still open? I keep a reference to the form butI don't know how to check to see if the user has closed it.