new learning VB - how to make "Empty Project"?

Hi,

Using VB Express Beta 2, I am trying to learn VB using a book entitled "Beginning Visual Basic.Net" by Wrox. I realize it is a few years old, but so far everything is worked fine.

I am on the "Building Objects" chapter (Chap 4), and it says to create an Empty Project, Add Class, Add Module

Since "Empty Project" is not present, I started by adding a Class, then added Module.

So, I have:

Car.vb
-

PublicClass Car
Public colorAsString
End
Class

Module1.vb
--

Module Module1

Sub Main()

'create new car object

Dim myCarAs Car

myCar =New Car()

'set the color proerty to RED

myCar.Color ="Red"

'show what the value of the prerty is...

Console.WriteLine("My car is this color: ")

Console.Writeline(myCar.Color)

'wait

Console.Readline()

EndSub

EndModule


--
I am supposed to run this and see a Debug window.... I get an error message about "...cannot start directly...Add an Executable Project to this Solution..."

Can you help?
Thanks
bob

P.S. - from approx 1986-1991 I was quite good with original GW Basic, Fortran, Cobol, and Turbo Pascal. Just getting back into the programming end....

[2531 byte] By [rpesq] at [2007-12-16]
# 1
Hi,
There is an Empty Project option (I am using VS2005 Beta 2) under the windows node(File->New->Project). Well if its not present in the Express editions. YOu could start by creating a new Console Project (I assumed coz your using the Console Object). Add a class, then add your code in the Main method. Build an Execute...
cheers,
Paul June A. Domag
PaulDomag at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 2
Hi Paul,

Thanks for quick reply. "New Project" is not in the Express edition.

Your suggestion seems to work good, though. Many thanks.

rpesq at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...