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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Best way to focus on MDI document

Thread ID:





33182 Aug 15,2005 05:56 PM UTC Aug 15,2005 10:17 PM UTC WinForms 1
Tags: Tools
David Whatley
Asked On August 15, 2005 05:56 PM UTC

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

Administrator [Syncfusion]
Replied On 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.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon