The code is ok. something wrong with the settings. I haven't use VS yet so I can't say more :/

Since you are new here, notice that there is a Game programming thread !!
But this post is ok to be...