using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Storage;
using Microsoft.Xna.Framework.GamerServices;
using System.Windows.Forms;
public class Game1 : Game
GraphicsDeviceManager graphics;
graphics = new GraphicsDeviceManager(this);
Content.RootDirectory = "Content";
protected override void Initialize()
Form form = (Form)Control.FromHandle(Window.Handle);
form.Location = new System.Drawing.Point(20, 20);
protected override void LoadContent()
spriteBatch = new SpriteBatch(GraphicsDevice);
protected override void UnloadContent()
protected override void Update(GameTime gameTime)
protected override void Draw(GameTime gameTime)
GraphicsDevice.Clear(Color.CornflowerBlue);