devxlogo

Setting Focus on a Form in an MDI Application

Setting Focus on a Form in an MDI Application

To gain focus on a form in an MDI Windows Application quickly, use the Form.Activate method. This method moves the form to the front of the application and gives it focus.

If you use this method on an inactive application minimized to the taskbar, it causes the application to flash in the taskbar.

devx-admin

Share the Post: