Visual Basic .NET Development 101: Learning and Using Microsoft Visual Studio 2010

Introduction

In the last article we walked through the process of downloading and installing Visual Basic 2010 Express edition. What you get when you're done is essentially the same integrated development environment (IDE) you get with the full Microsoft Visual Studio 2010 product. What's missing are some of the features specifically targeted at team development. On the plus side, Microsoft does not restrict what you do with any of the Express editions, meaning you can develop a commercial application and distribute it just as you would with any of their "professional" tools.

When you launch VB 2010 Express, you'll be presented with a Start Page similar to what's shown in Figure 1. All versions of Microsoft Visual Studio use a tabbed interface in much the same way as a modern Web browser. The Start Page is like your default home page and will open in the first tab by default unless you change it. It's also a good summary page with links to recently used projects, learning material and the latest developer news from Microsoft. You can create a new project right from the Start Page as well. Clicking on New Project will launch a wizard like the one in Figure 2.

VB 2010 Express Start Page
Figure 1

Clicking on New Project will launch a wizard
Figure 2

Your options from the New Project wizard include creating a Windows Forms, WPF, or Console Application, a Class Library, or a WPF Browser Application. We'll take the default first choice which is to create a Windows Forms Application and stick with the default name. At this point there isn't a whole lot you can do because the form designer toolbox is not displayed. To add this to your workspace you need to click on the little icon that looks like a crossed hammer and wrench or use the keyboard shortcut of Ctrl-Alt-X. This will add the Toolbox menu to the left-hand side of your window. You can "pin" the toolbox window open by clicking on the push-pin icon in the top right-hand corner of the Toolbox window. This makes it much easier to drag elements onto the design surface.

For this first application we're going to drag a button from the Toolbox and drop it onto Form1 as shown in Figure 3. Once the button is on the form you can click on any of the handles (small squares on the corners and mid points of the button) to resize it to your satisfaction. This is a good point to talk about the other windows you should see on the screen at this point. By default, Microsoft Visual Studio 2010 will open the Solution Explorer and Properties windows on the right-hand side of the screen. The Solution Explorer window shows you all the files in your application while the Properties window gives you information about the currently selected design element. You can change the properties by clicking on a specific item such as Text and begin typing in the box to the right of the label. Every user interface element has an associated property dialog with a long list of things you can change. You could also change an element's properties programmatically, but we'll save that for a later time.

drag a button from the Toolbox and drop it onto Form1
Figure 3

Summary

Next article we'll walk through the rest of the features of Microsoft Visual Studio that you'll need to complete the sample programs yet to come.



Comments

  • this comment thingy sucks

    Posted by william on 10/10/2012 05:47am

    I made a big long comment an then it didn't post so now im doing this to express my anger... GRRRRRR big GRRRRRR face =(

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Live Event Date: May 11, 2015 @ 1:00 p.m. ET / 10:00 a.m. PT One of the languages that have always been supported with the Intel® RealSense™ SDK (Software Developer Kit) is JavaScript, specifically so that web-enabled apps could be created. Come hear from Intel Expert Bob Duffy as he reviews his own little "space shooting" game where the orientation of your face controls the aiming reticle to help teach developers how to write apps and games in JavaScript that can use facial and gesture …

  • Companies rely on their telephone and voice systems to maintain services and products to their customers. Yet many experience outages with no plans in place to ensure a speedy recovery. A solid business continuity plan can help maintain uptime and reduce the headaches and fires IT has to deal with when an outage occurs. This white paper takes a deeper look into the common causes of voice failures, how companies deal with voice outages today, and how to determine the right business continuity solution for your …

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date