I think we need to back up some here, rodchar, and here's why: Your question
involves a number of concepts, none of which you seem to have a very good
grasp on. Uncle Chutney sez "Big things are made up of lots of little
things." An application is made up of lots of classes. Classes are made up
of lots of fields, propreties and functions (somewhat simplified). Fields,
properties and functions are made up of lots of statements and expressions.
So, before you can ask the question "where does "Dim o as new Orders"
occur," you have to have a firm understanding of classes. In order to know
anything about classes, you need a firm understanding of object-orientation,
fields, properties, and functions. And in order to know anything about
fields, properties, and functions, you have to have a firm understanding of
expressions and statements.
In the world of programming, when you learn a new technology, you generally
start out with a simple program called "Hello World." All it does is output
the phrase "Hello World" to whatever output mechanism the technology uses.
It takes no input. It simply puts out "Hello World." There is a reason for
this (Big things are made up of lots of little things). By getting a firm
grasp of the bricks, the house appears without even thinking about it. How
do you write an elephant? One byte at a time.
I would suggest rather than making up your own self-tutorial, find some very
basic ready-made ones that you can use (the .Net SDK is full of them), and
do them. Study each one to get a full understanding of it. Once you've
mastered the concepts, move on to something that does a little more. You can
download the .Net SDK from the following URL (for free!):
http://www.microsoft.com/downloads/...A6-3647-4070-9F41-A333C6B9181D&displaylang=en
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living