m_mainForm = Control.FromHandle(new IntPtr(m_application.hWnd)) as Form; 转载于:https://www.cnblogs.com/aqi0530/archive/2012/08/24/2655140.html