new learning VB - how to make "Empty Project"?
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 Public Module1.vb Module
-
Public colorAsString
EndClass
--
Sub Main()
'create new car object
Dim myCarAs CarmyCar =
New Car()'set the color proerty to REDmyCar.Color =
"Red"'show what the value of the prerty is...Console.WriteLine(
"My car is this color: ")Console.Writeline(myCar.Color)
'waitConsole.Readline()
EndSubEnd
Module--
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....

