MDI Forms and focus frustration, please help
-
I have a problem with mdi forms in my application. There are two mdi forms. They have scroll bars. There is a control on the left mdi form near to the top. Now the problem is: I scroll the left mdi form to the bottom. I click to the other mdi form. I click back to the left mdi form and when the left one is activated/focused it automatically scrolls to the top where the control is and sets focus to it. There're absolutely nothing in the code anywhere to do this. There're no .Focus() calls, no OnFocus event, .ActiveControl= etc. Nothing. I couldn't find a way to prevent this and it's driving me insane. I even tried to handle *FOCUS Windows messages it's receiving but failed. Can you please help me find a way to prevent this? I appreciate any help.
-
I have a problem with mdi forms in my application. There are two mdi forms. They have scroll bars. There is a control on the left mdi form near to the top. Now the problem is: I scroll the left mdi form to the bottom. I click to the other mdi form. I click back to the left mdi form and when the left one is activated/focused it automatically scrolls to the top where the control is and sets focus to it. There're absolutely nothing in the code anywhere to do this. There're no .Focus() calls, no OnFocus event, .ActiveControl= etc. Nothing. I couldn't find a way to prevent this and it's driving me insane. I even tried to handle *FOCUS Windows messages it's receiving but failed. Can you please help me find a way to prevent this? I appreciate any help.