Wednesday, December 26, 2007

Learn Vb 6

Although VB.NET is gaining ground fast, VB 6 remains a very popular programming environment. But even if it wasn't as great as it is, if you're new to Visual Basic and you have a copy available, it's still a great place to start learning about programming!
The only real problem with using VB 6 is that you really can't buy a copy today. Microsoft just isn't selling them anymore. There's no reason why you can't continue to use VB 6 for as long as you want to however. Microsoft will support the VB 6 environment even on the very latest Vista operating system scheduled to be introduced in 2007.
One reason VB is so great for learning is that the original BASIC ("Beginner's All purpose Symbolic Instruction Code") was designed as a language to teach people how to program by Kemeny and Kurtz at Dartmouth College w-a-a-a-y back in 1963. A lot of very talented programmers think that VB 6 is still the best development environment. You can check out their reasons here and here. Or perhaps you're reluctant to pay the new, enhanced prices that Microsoft is asking for .NET software. Whatever your reasons, it's clear that VB 6 is going to be around for a good while longer. You can invest in learning how to be an expert programmer using VB 6 and be confident that you're not wasting your time!
Still not sure? Here's what the legendary VB Guru Dan Appleman has to say about the idea that you have to switch to VB.NET immediately:
These ideas are basically nonsense. ... The magnitude of the change is such that the transition to VB.NET is likely to be measured in years rather than months -- and for some applications, it may not make sense to switch at all.
Learning VB 6In the 'Essentials' topic Learning Visual Basic, a program that uses one form with two command buttons was introduced.

We're going to go through the complete steps to create this.First ... in rapid fire ... the steps. Then ... a more complete explanation.
Start Visual Basic. Usually, 'Start > Programs > Microsoft Visual Studio > Microsoft Visual Basic 6.0'.
Click the default Standard EXE icon and then click the Open button.
Click the Command Button icon in the Toolbox. Draw two buttons on the form by clicking and dragging.
Click the first Command Button to select it. Open the property window and change the Name property to CommandA. Change the Caption to A.
Select the second Command Button from the drop down window at the top of the property window and then change the Name property to CommandB. Change the Caption to B.
Double click the first Command Button object in the form to open the code window for that button.
Enter the code, Msgbox "You clicked Button A" after the automatically entered code Private Sub CommandA_Click().
Double click the second Command Button object in the form to open the code window for that button.
Enter the code, Msgbox "You clicked Button B" after the automatically entered code Private Sub CommandB_Click().
Click the Run button in the toolbar at the top of the VB 6 development environment window to execute the program.
Click either button A or button B and observe the fruits of your labor!

No comments: