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


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


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.


  • 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 =(

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

Top White Papers and Webcasts

  • At present, the most commonly deployed parallel file system is Lustre, and its adoption is growing across the HPC industry. According to Intersect 360 Research, "Through its leadership and involvement with OpenSFS, Cray advocates for the development of features that drive efficient performance at scale." Moreover, with help from Cray and OpenSFS, Lustre is gaining greater adoption across broader commercial application categories. As data and I/O requirements grow in commercial markets, technology vendors -- …

  • Many businesses still rely on a legacy telephony infrastructure that is costly and complicated in the mistaken belief that it is more expensive and disruptive to change. These businesses are often slow to adopt new communications platforms that can provide a competitive advantage, decrease costs, and grow with the business. Answer a few simple questions about your organization and get a personalized paper that explores the benefits of cloud-based communications platforms.

Most Popular Programming Stories

More for Developers

RSS Feeds

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