The Owner is a Control that the FlatRedBall Engine renders to. This property is available only on the PC since the Xbox 360 does not render to a Control.
The following code will result in a game window without any borders. Keep in mind that without the borders the close button will not be present, so you will need to close your application through Visual Studio, through the Task Manager, or by adding close code in your application.
Add the following using statement:
Add the following to initialize after initializing FlatRedBall:
The Owner can be casted to a Form, and the form provides a number of useful properties and events. The following code can be used to react to the user using the mouse to press on the X close button.
Add the following to Initialize after initializing FlatRedBall:
Add the following at class scope:
Some applications, such as tools, should only have their logic called if they are active. In other words, if the user clicks a different window (such as a web browser or instant messenger window), then the game should skip certain logic. The following code detects whether the game's Form is active: