Hi Orgbrat,
Please make sure that the EditControl has the lowest TabIndex value among all the controls on the MDI child form. This way it will automatically receive focus when the MDI child form is activated.
You could also force the the EditControl to receive focus by handling the Activated event of the MDI child form and using the following code :
this.editControl1.Focus();
or use the SetFocus interop call
SetFocus(this.editControl1.Handle);
You could have to import the following library before you invoke the interop call :
[DllImport("user32.dll", CharSet=CharSet.Auto)]
internal static extern IntPtr SetFocus(IntPtr hWind);
Please refer to the
test sample attached that illustrates this and let me know if you need further assistance.
Regards,
Guru Patwal
Syncfusion, Inc.