Id like to interject something as well...
One of the most elementary things you're going to need to understand, but is sometimes neglected or difficult to realize is this:
In VB, you should think in terms of "OBJECTS"
Every Object has the following:
Properties - (describes it: for example, COLOR)
Methods - (what it does: for example, Print)
Events - (what can happen to it: for example, Click)
Once you grasp this, the development process seems more natural and should seem a lot less difficult.
Try to apply this to the real world and you'll see why I say it becomes "natural". Imagine a pencil... it's an object. The object (pencil) has some properties:
The pencil's color is "Yellow" or:
pencil.color = Yellow
The pencil's has an eraser, or:
Pencil.Eraser = True
The pencil is not currently sharpened, or:
Pencil.Sharpened = False
The pencil is used to perform a few simple tasks, such as drawing and writing, or: Examples of METHODS
You write a letter to Bob, telling him you quit your job as an automechanic, or:
Pencil.Write "Bob, I quit, I don't want to work for you anymore because I'm now a software developer"
Suppose you make a mistake, if the pencil has an eraser (which you determined by looking at the other end of the pencil), you use it to rub out the mistake.
If pencil.eraser = true then Pencil.Erase "I quit"
Now you replace the erased words by re-writing those words the way you intended...
Pencil.write "I QUIT!"
ok, I think you get the point of methods... but one more example...
You also want to draw a mad face on the letter, to signify your displeasure with Bob as a person, so:
Pencil.draw (a circle)
Pencil.draw (two eyes)
Pencil.draw (frowning mouth)
And for the events...
Events are things that can happen to the object (pencil)...
Like, laying down the pencil
or, picking up the pencil.
Obviously, you cannot use the pencil's write or draw capabilities (methods) without first picking up the pencil (an event that happens to the pencil), at which time it is no longer available to be picked up, and you can apply it's drawing capabilities... Then, when you lay the pencil down, it becomes available: See below:
Pencil_Pickup
Pencil.Available = False
Pencil.draw (a circle)
Pencil.draw (two eyes)
Pencil.draw (frowning mouth)
End Pickup
Pencil_Laydown
pencil.available = True
End Laydown
What other objects were involved in this little example?
Many, lets name some of them:
Paper (assumed in this example, since we didn't specify it)
User (that would be you, and you have properties, methods and events as well... you are an object!)
What about the mad face you drew using the draw method? Yep! It's an object!
See how easy it is?
To write, we do the same thing with VB...
Label1.caption = "Hello!"
Label1 is the object
One of its properties is caption
We assigned the value "Hello!" to the property of the label.
The caption property changed, which is an event!
I hope this helps, if even just a little.
No Dolphins were harmed in the posting of this message... Dolphin Friendly Tuna!