/// <summary> /// Makes your form a child form of the fake glass game overlay. /// Use only for testing, or other potentially weird purposes. /// (Please no GDI Overlays) /// </summary> /// <param name="yourForm">Your windows forms form.</param> public void Attach_Windows_Form(Form yourForm) { IntPtr userForm_Handle_ID = yourForm.Handle; IntPtr thisForm_Handle_ID = overlayWinForm.Handle; WINAPI_Components.SetParent(userForm_Handle_ID, thisForm_Handle_ID); yourForm.BringToFront(); // Bring to front }
/// <summary> /// Makes your form a child form of the fake glass game overlay. /// </summary> /// <param name="Your_Form"></param> public void Attach_Windows_Form(Form Your_Form) { IntPtr User_Form_Handle_ID = Your_Form.Handle; IntPtr This_Form_Handle_ID = this.Handle; WINAPI_Components.SetParent(User_Form_Handle_ID, This_Form_Handle_ID); Your_Form.BringToFront(); // Bring to front }
/// <summary> /// Makes your form a child form of the fake glass game overlay. /// </summary> /// <param name="Your_Form"></param> private void Attach_To_Game() { IntPtr This_Form_Handle_ID = this.Handle; WINAPI_Components.SetParent(This_Form_Handle_ID, Heroes_Window_Handle); }