6 Building Windows Applications

WHAT YOU WILL LEARN IN THIS CHAPTER:

  • How to add more features using buttons, text boxes, and radio buttons
  • How to create a simple toolbar and toolbar buttons to respond to events
  • How to create additional forms and windows in your applications

WROX.COM CODE DOWNLOADS FOR THIS CHAPTER

The wrox.com code downloads for this chapter are found at www.wrox.com/begvisualbasic2015 on the Download Code tab. The code is in the 092117 C06.zip download and individually named according to the names given throughout the chapter.

When Microsoft first released Visual Basic 1.0, developers fell in love with it because it made building the user interface components of an application very simple. Instead of having to write thousands of lines of code to display windows—the very staple of a Windows application—developers could simply draw the window on the screen.

In Visual Basic (any version), a window is known as a form. With the .NET Framework, this form design capability has been brought to all the managed languages—as Windows Forms in Windows Forms applications. You’ve been using Windows Forms over the course of the previous chapters. However, you haven’t really given that much thought to them—focusing instead on the code that you’ve written inside them.

In this chapter, you’ll look in detail at Windows Forms and learn how you can use Visual Basic 2015 to put together fully featured Windows applications using Windows Forms Application projects.

RESPONDING ...

Get Beginning Visual Basic 2015 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.