Exemple #1
0
 public static IntPtr GetDefaultParentWindowHandle()
 {
     return(Win32Utilities.GetDefaultParentWindowHandle());
 }
Exemple #2
0
        public static void ReparentForm(Form myForm)
        {
            IntPtr parentHandle        = Win32Utilities.ReparentWindow(myForm.Handle, Win32Utilities.GetDefaultParentWindowHandle());
            RestoreParentOnClose close = new RestoreParentOnClose(myForm, parentHandle);

            myForm.Closed += new EventHandler(close.FormClosed);
        }