We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Best way to focus on MDI document

I have an unusual situation where I''m using tabbed MDI and when I create a new document, the control in the document (a custom control editor similar to Syncfusion''s Edit) doesn''t get focus. I''ve tried forcing it to get focus... but ultimately the Tab control seems to get the focus (cuz you hit the downkey and it changes tabs). What''s the right way to force focus to the document''s control itself? I''ve tried everything I can think of... and, worse still, this behavior doesn''t show up in extremely simple repo apps or I would have reported it as a bug already. -- David

1 Reply

AD Administrator Syncfusion Team August 15, 2005 10:17 PM UTC

Hi David, I am afraid, it is very difficult to investigate this issue without a test sample. I would appreciate if you could put together a test sample and send it over to us. You could also try to explicitly set focus on the desired control in the MDI child form using the following interop call : [DllImport("User32.dll")] public extern static IntPtr SetFocus(IntPtr hWnd); Let me know if this helps. We appreciate your intetest in Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

Live Chat Icon For mobile
Up arrow icon