I found a similar question here.I put the code in the contructor method but it didn\'t work for me.
graphics.PreferredBackBufferWidth = 400; graphics.PreferredBac