December 10th, 2012, 07:20 PM
I'm having trouble with my code
Hey everyone. I am having trouble with writing settings from a Windows form for my game. What I'm trying to do is have the user input the screen resolution width and height in a Windows form, write it to a binary file, then open the file with the game and pass the variables to Viewport.Width and Height.
These are the 2 errors I'm getting:
I'll attach my code, since I think it would be easier for anyone who could help me to see the whole code instead of just snippets.
An object reference is required for the non-static field, method, or property 'ShovelShovel.WindowSize.Width.get'
An object reference is required for the non-static field, method, or property 'ShovelShovel.WindowSize.Height.get'
Thank you so much to anyone who can help me. I admit I am still a beginner, so I get confused easily...
Click Here to Expand Forum to Full Width