Setting the Window Title


This is a very short tutorial about how to set the title of your XNA game window.

Setting the Window Title

Setting the title of your XNA game window is very simple. It is just one line of code, which you can put in your main game class's constructor:

this.Window.Title = "New Title";


Setting your game's window title is one of many common utility tasks that come up frequently in an XNA game. If you found this tutorial useful, you might also want to take a look at the Changing the Window Size tutorial, or the Calculating the Frame Rate tutorial.

Troubleshooting.png Having problems with this tutorial? Try the troubleshooting page!