[TUT] Getting Started With Visual Basic!

Post here about scripting and programming for HaloPC (audio, network, ai, etc.)
Post Reply
getlowdogg





Posts: 59
Joined: Sat Feb 04, 2006 9:27 pm
Location: White Oak, PA

[TUT] Getting Started With Visual Basic!

Post by getlowdogg »

Hello everyone. If you are a total beginner (noob), and do not even know where to get Visual Basic, this is the tutorial for you. Step-by-step instructions with pictures! Ok, now lets get started. We will be making a Web Browser.
1. Download Visual Basic by clicking here.
2. Goto ->Start ->All Programs ->Microsoft Visual Basic 2005 Express Edition.
3. When Visual Basic is opened, goto ->File ->New Project.
4. Click on the icon titled "Windows Applications" under "Visual Studio installed templates".
Image
5. Next to "Name:", erase WindowsApplication1 and type in a name for your project (Ex. Web Browser).
Image
6. Click on the button titled "OK".
Image
7. At the top of the program, click on the button that is circled in the image below, then expand "All Windows Form" in the window that pops up on the left side.
Image
8. Drag over the items circled in the image below into the window titled "Form1". You may re-size and/or move the items you dragged over to your liking.
Image
9. Click on the button you have dragged over titled "Button1".
10. On the bottom right of the program in the properties box, scroll down to "Text".
11. Next to "Text", type in what you want the button to say on it (Ex. Go).
Image
12. Double click the text box.
13. The typing cursor should automatically be where you type the code in after the text box is duble clicked. Type in the following code:

Code: Select all

WebBrowser1.Navigate(TextBox1.Text)
Your screen shuld now look like the following...
Image
14. Goto ->Project ->(Project Name) Properties in the toolbar of Visual Basic.
15. A new window should appear n Visual Basic. At the left of the window, click on "Compile".
Image
15. Scroll all the way to the right using the sroll bar.
16. Click on the button titled "Browse...".
Image
17. Choose a directory you want to save your program to (Ex. Desktop).
18. Goto ->Build ->Build (Project Name) in the toolbar at the top of Visual Basic.
19. Close out of Visual Basic.
You are now done making your program! :D I hope you enjoy it! Please visit http://www.modsforhalo.com to support us, and please pin this!
Kurroda





Posts: 1737
Joined: Sat Sep 03, 2005 10:01 am
Contact:

Post by Kurroda »

shouldnt you be doing a hello world for the first app? teach them thats were n00bs start hello world
Image
Patrickssj6




Pi Collaborator

Posts: 5426
Joined: Sat Jul 24, 2004 12:12 pm
Location: I'm a Paranoid
Contact:

Post by Patrickssj6 »

This is my first tut.You have to explain the UI first:
http://s13.invisionfree.com/Vivid_Abstr ... wtopic=238
...left for good
PlasmaGhost





Posts: 149
Joined: Wed Oct 05, 2005 12:23 pm

Post by PlasmaGhost »

i prefer notepad like programs for tuts :P nice tho. no offence but arent there like 3 tuts on web browsers already? oh well
Post Reply