Visual Basic: Beginner Tutorial

Visual Basic: Beginner Tutorial thumbnail
Visual Basic allows you to create different types of applications.

Visual Basic is a programming language developed and owned by Microsoft. The language creates applications from small games in hand-held devices to large corporate Intranet networks of information. Learning the Visual Basic language is best done with either Microsoft's full-blown developer environment Visual Studio.NET or the free limited version Visual Basic Express, available as a free download at Microsoft.com. Any Visual Basic application that creates a user interface, displays messages or accepts information is a good place to start.

Things You'll Need

  • Microsoft Visual Studio.NET installed on a PC
  • Microsoft Visual Basic Express installed on a PC (optional)
Show More

Instructions

    • 1

      Open your developer environment. Click on "File" and then "New Project." A window opens for you to choose the type of project to work with. Click on "Windows Form Application." Type the name of your project in the "Name" box below and click "OK" when you finish.

    • 2

      Click on "View" from the top menu choices and choose "Tool Box." Scroll through the "Tool Box" and select a "Text Box." Click and drag it to the center of the blank form to your right.

    • 3

      Click and drag a "Button" from the "Tool Box" and place it beneath the "Text Box."

    • 4

      Click one time on the "Button" and navigate to the "Properties" tab on the right hand portion of your screen. Scroll through the "Properties" tab to find the "Text" field. Delete the default text and type "Display." Hit your "Enter" key when you finish.

    • 5

      Double-click the "Display" button to take you to the code page. Type "TextBox1.text = "This is really cool!"" without the outer quotations marks between the "Private Sub" and "End Sub" notations.

    • 6

      Press the small "green arrow" pointing to the right in the upper choices of icons to run your program. The program will appear as a standalone application. Click on the "Display" button and the message should appear in the "Text Box."

    • 7

      Press "File" along the top menu choices and choose "Save all files." Close your developer environment.

Tips & Warnings

  • Typing "me" and then a period after the word "me" will populate a list of objects you've placed in the form already. For example, when you type the "me" with the period after it, Visual Basic will display, "me.TextBox1" for you to choose from. Pressing the "Tab" key on your keyboard will choose it for you to reduce the amount of typing you need to do.

  • If you type any code incorrectly, Visual Basic will highlight your errors in red, green or blue squiggly lines. These errors must be fixed prior to running your application.

Related Searches:

References

  • Photo Credit trade and balance folder image by Alexey Klementiev from Fotolia.com

Comments

You May Also Like

  • Visual Basic Tutorial for Beginners

    Learning any new computer programming language will take time, practice and patience. The Visual Basic programming language offers you the ability to...

  • Beginner Visual Basic 2008 Tutorial

    While many originally scoffed at the Visual Basic programming language, Microsoft has developed it into a robust programming language. With its inclusion...

  • How to Learn Beginner Visual Basic

    Visual Basic is a high-level programming language that generally allows programmers to create applications or programs that computer users can utilize. These...

  • Visual Basic 2010 Tutorial for Beginners

    Microsoft's Visual Basic has evolved from its beginnings to a full-featured, robust object-oriented programming language. The Visual Studio Integrated Development ...

  • Visual Basic for Applications for Beginners

    Visual Basic for Applications (VBA) is a programming language you can use to customize or extend Microsoft Office applications such as Excel...

  • Microsoft Visual Basic for Applications Tutorial

    Microsoft Office applications like Word and Excel are extremely powerful tools that can be made even more powerful through automation. You can...

  • Visual Studio Team System 2008 Tutorial

    Visual Studio Team System is an integrated system designed for software development life cycles. It provides management tools for project managers and...

  • How to Kill a Process That Is Running in VB6

    Visual Basic 6.0 is a programming language created by the Microsoft corporation. It uses the Beginner's All-purpose Symbolic Instruction Code (BASIC) language...

  • Excel Visual Basic for Beginners

    Visual Basic for Applications (VBA) is a programming language used to customize Microsoft Office applications, including Word, PowerPoint and Excel. Writing a...

  • Visual Studio SQL Tutorial

    SQL Server is a system that allows developers to create and manage databases. It runs as a service and has no user...

  • Visual Basic 2008 Tutorial

    Visual Basic offers the ability for computer programmers to develop software applications that range from games to applications that involve database integration...

  • Visual Basic 2005 Express Edition Tutorial

    Visual Basic 2005 Express Edition is provided free of charge by Microsoft. This software is designed to design, test and publish software...

  • Microsoft Visual Basic Tutorial

    With Visual Basic, you can create applications for the Web, the desktop and handheld computers. Visual Basic's IDE (integrated development environment) provides...

  • Visual Basic Tutorial for Windows 7

    Microsoft's free Express version of its Visual Basic programming language makes learning to program a computer an inexpensive proposition for the beginner....

  • How to Use Visual Basic Express

    The current version of Visual Basic Express (VBE) is 2008. If you already have VBE 2005, then with the exception of some...

  • Where Can I Download Visual Basic 2010?

    Visual Basic 2010 is the latest version of the popular Visual Basic programming software produced by Microsoft. Microsoft offers a free but...

  • A Step-By-Step Tutorial For Visual Basic

    Microsoft's Visual Basic gets better with every new release, and the free Express version makes it even more attractive. Its ease of...

  • Microsoft Office Visual Studio 2005 Tutorial

    Microsoft Office is a popular office suite produced by Microsoft. The typical suite includes Word, Excel, Access, PowerPoint, Publisher and Outlook. Microsoft...

  • Tutorial for Microsoft Visual Studio

    An Integrated Development Environment (IDE) allows programmers to code software quickly using a graphical user interface (GUI). Microsoft Visual Studio gives ...

Related Ads

Featured