How to launch and focus a form from another's when launched

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.

Featured Post

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…

Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…