Learn Visual Basic.
Learn Visual Basic. This is for anyone who is just starting to learn visual basic. There are many other programming languages but i really reccommend beginners to learn visual basic. Visual Basic is a very good programming language to make simple applications and games. Don't go around asking if you should learn visual basic to code a 3D MMORPG. It's possible to program mostly any game in VB but its just not worth it. C++ has been tested 10% faster if im not mistaking but it doesn't mean you can't use VB. VB was pretty useless for games before it got DirectX support. Just keep in mind not to make big plans with Visual Basic because you might get dissapointed. Also keep in mind that im not going to say anything more about games in this Learn Visual Basic article.
1. Getting Started
First open up your Visual Basic 6.A popup window should appear, click Standard exe and click open.You should now see a form named Form1.
2. The toolbox
Toolbox is to make controls really fast, most of the programming languages dont have anything like this. So basiclly things like this makes it really easy to learn visual basic. You should see a toolbox in the left of the screen. If you don't see the toolbox, click View - Toolbox. Here you have the most basic controls to use in your programs. You can find out what they are by holding your mouse on them. Dont know what they do? Dont worry, you wont be needing most of them right now.
3. Making your first program
We are going to make a very easy program to get you started.The Program copys text from one box to another.
* Righ click anywhere on form1
* Select propertis
* Propertis should appear in the right corner
* Find the caption part in form1 propertis
* Rename caption and (Name) to MyProgram
* Now find "TextBox" from toolbox and double click it
* Find the "text" part in the TextBox propertis
* Make that part blank
* Make another TextBox and do the same as you did for the first box.
You can resize anything by clicking on it.
* Now make a CommandButton and name it "Send"
* Double click on the CommandButton and Visual Basic should take you to the "programming part"
* Now it should say "Private Sub Send_Click()". After that line type in the following:
Text2.text = text1.text
That means: IF you click the SEND button it will make the "text" part of both TextBoxes EQUAL. Now you should have something like this: Private Sub Send_Click()Text2.Text = Text1.TextEnd Sub.
If it does not say "Send_Click()" then you forgot to rename your button at the "(Name)" part. Text1 is the name of the first textbox and text2 is the name of the second one.
Now play around with those controls and try new things.
BlogCatalog
Friday, August 29, 2008
Learn Visual Basic
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment