protected override void OnHandleCreated (EventArgs e)
{
base.OnHandleCreated (e);
if (Application.MWFThread.Current.Context != null && Application.MWFThread.Current.Context.MainForm != null)
XplatUI.SetOwner (this.Handle, Application.MWFThread.Current.Context.MainForm.Handle);
}