Window Losing Focus

Home / Blogs / Window Losing Focus

TLDR: When any window in Windows OS loses focus after closing a dialog, the best method that works for me to get back to normal behavior is by killing the explorer.exe from the task manager. For safety, I keep the command prompt open so that I can reopen Windows Explorer again if it doesn’t reopen automatically. Just pass the explorer.exe command in the command prompt.

Quite a few times, I found while working in LabVIEW that when I open some dialogs like VI properties or LabVIEW Options and close those dialogs, focus is lost and my Ctrl+Space or Ctrl+W doesn’t work in the previous window I was working with. Initially, I thought it was due to some bug in LabVIEW, but later found that Windows Explorer is taking on some focus after closing any window. So killing the explorer worked.

Leave a Reply

Your email address will not be published. Required fields are marked *