How do I prevent the original form from losing focus when I show another form?
问题 I am having a problem where my main form loses focus when opening a new form. I know I can revert the focus back by using mainForm.focus() , but how do I handle things if I want the main form to never give up its focus when new window is opened? 回答1: You can accomplish this by overriding the property ShowWithoutActivation in order for it to return true in the forms that you want to show without stealing focus from the form that shown it, in your case that would be your main form. 回答2: Cody