Visual Basic Tutorial for Beginners

Save

Learning any new computer programming language will take time, practice and patience. The Visual Basic programming language offers you the ability to create simple applications like small games or larger projects like web pages and applications that use a database. Microsoft’s developer environments, both the full version Microsoft Visual Studio.NET and the free version Visual Basic Express, offer help tutorials and an “Intellisense” feature that offers you suggested syntax or code while you add the code to your project.

  • Open Visual Studio.NET or Visual Basic Express. Click on “File” and then “New Project” to create a new project to work on. A new window opens for you to choose the type of Visual Basic project to create.

  • Click on “Windows Form Application” and type the name of your program in the “Name” box down below. Click “OK” when you finish to return to your workspace.

  • Open the “Tool Box” panel on the left side of the workspace and click and drag a “PictureBox” and a “Button” and place them on the work form.

  • Link a picture to the “PictureBox” form by clicking on the “…” inside the “Image” field of the “Properties” tab on the right side of the screen. Click on “Import” and then choose “Local Resource.” Navigate to your picture files, click on the picture you want to attach and click “OK” when you finish.

  • Click once on the “Button” on your work form, navigate to the “Properties” tab and find the “Text” field. Erase the default text and type in “Surprise me!” Hit “Enter” when you are finished.

  • Double-click on the “Surprise me!” button to take you to the code screen. Type “MsgBox.text = (“This picture is super neat.”)”--without the outer quotation marks--between the “Private Sub” and “End Sub” notations.

  • Press the green arrow pointing to the right along the top icon choices. Your application will appear by itself. Click on the “Surprise me!” button and you should see your message display. Click the red “x” in the right corner to close the application.

  • Save your work and close your developer environment.

References

  • “Microsoft Visual Basic 2008 Step by Step”; Michael Halvorson; 2008
  • Microsoft: Express
Promoted By Zergnet

Comments

You May Also Like

  • 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 Environment provides...

Related Searches

Check It Out

Geek Vs Geek: Robot battles, hoverboard drag race, and more

M
Is DIY in your DNA? Become part of our maker community.
Submit Your Work!