In this tutorial I will cover the following:
  1. How to add xna references
  2. Importing xna references

A few prerequisites:
  1. Visual Basic.Net 2010 or higher
  2. Microsoft XNA 4.0 or higher

First, go ahead and start a new windows application project and name it. To get started with XNA, we must first add the correct references. Go to project -> add reference in the menu strip. In the add reference dialog, open the .Net tab. The references we will add are:
  • Microsoft.Xna.Framework
  • Microsoft.Xna.Framework.Avatar
  • Microsoft.Xna.Framework.Game
  • Microsoft.Xna.Framework.GamerServices
  • Microsoft.Xna.Framework.Graphics
  • Microsoft.Xna.Framework.Input.Touch
  • Microsoft.Xna.Framework.Net
  • Microsoft.Xna.Framework.Storage
  • Microsoft.Xna.Framework.Video
  • Microsoft.Xna.Framework.Xact

Check out the screenshot below:
Attachment 94929

After we add the references, go ahead and open up the code window for the form by pressing F7. Now we need to import a few things:
  1. Xna Framework
  2. Xna Input
  3. Xna Graphics

Now that we've imported those three frameworks, your code should look like this: Code:
  1. Option Strict On
  2. Option Explicit On
  4. Imports Microsoft.Xna.Framework
  5. Imports Microsoft.Xna.Framework.Input
  6. Imports Microsoft.Xna.Framework.Graphics
  7. Public Class Form1
  9. End Class

This will now allow you to program with XNA in Visual Basic.Net.

More XNA in Vb.Net to come later!