As I've said on many occasions in the past, it's those sometimes tiny little Gotchas that will cause you the greatest amount of aggravation. Here's one that I've been meaning to blog for a while now. It's a question/problem that comes up fairly often and it usually goes something like this:-
"In a Windows Forms project, I add a module that has a Sub Main procedure in it. I want to use this Sub Main as the StartUp Object in the application. But when I look in the project properties, I don't see "Sub Main" as a choice. "
"It used to be here in earlier editions - where has it gone to and how can I access it? "
The solution to this particular Gotcha is very easy.
Open up the Project Properties page.
Home in on the "Enable Application Framework" CheckBox.
Uncheck this option (i.e. disable it)
Now if you view the "Startup Form" combo you'll see that it has changed so that it reads "Startup Object".
Click on the combo and all the forms plus the module and the Sub Main inside that module will all be available as Startup objects.
It's one of those "simple when you know" things that'll drive you mad if you don't!