What version of VB are you using?

If you have the "Learners Edition", you probably won't be able to compile your program.