I m new to XNA game programming(also C#). I want to create a main page with some buttons and when clicking on a particular button, it should go to another screen where there are some more buttons to select, which should in turn go to the game screen when clicked. Whether I can put all the code in "game1.cs" or create new class for every page. I just went through "Learning xna4.0" by O'Reilly. If there's any other good tutorials, please suggest me.
closed as not a real question by Laurent Couvidou, Byte56, Jonathan Hobbs, Nicol Bolas, Tetrad♦ Oct 13 '12 at 21:09
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.
I found XNA Game Development By Example to be a great help for beginners.
That said, it's hard to answer your question because you provide relatively little detail, but what you want probably comes down to GameStates or a similar mechanic. It works roughly like this:
You have a gamestate
Now in your
This can of course be extended in several ways: you can use more gamestates, or you can have a kind of "sub-gamestate" contained in your menu that you manipulate with your buttons, so that you don't clutter your top level gamestate with options for each and every menu screen.
As to whether to put it all into your