The WindowHandle is an IntPtr referencing the Form that is hosting the XNA game. This can be used to get access to the form to perform customization and handle events.
The following code can be used to get the current Form:
If your application uses the [STAThread] attribute on your program's Main function (often to interact with winforms), your FRB apps may not resume properly when minimized. To correct this you can simply disable the FRB engine from performing logic when its host window is minimized. To do this:
Add the following code to Initialize:
Add the following code to your Game class: