Microsoft Visual Basic 2005 Step by Step (Step by Step (Microsoft))

Chapter 14

Managing Windows Forms and Controls at Run Time

After completing this chapter, you will be able to:

In Part II, you learned many of the core development skills necessary for writing Microsoft Visual Basic applications. You learned how to use variables, operators, and decision structures; how to manage code flow with loops, timers, procedures, and structured error handlers; how to debug your programs; and how to organize information with arrays, collections, text files, and string processing techniques.

Each exercise you have worked with so far concentrated on one or more of these core skills in a simple, stand-alone program. Real-world programs are rarely so simple. They usually require you to combine the techniques in various ways and with various enhancements. Your programs will quite often require multiple forms, used as dialog boxes, input and output forms, reports, and so on. Because Visual Basic treats each form as a separate object, you can think of them as simple building blocks that you can combine to create powerful programs.

In Part III, you'll focus again on the user interface, and you'll learn how to add multiform projects, animation effects, visual inheritance, and printing support to your Visual Basic applications.

In this chapter, you'll learn how to add additional forms to an application to handle input, output, and special messages. You'll also learn how to use the Me and My.Forms objects to switch between forms, how to use the DesktopBounds property to resize a form, how to add Toolbox controls to a form at run time, how to change the alignment of objects within a form, and how to specify which form runs when a program is started.

Upgrade Notes: Migrating Visual Basic 6 Code to Visual Basic 2005

If you're experienced with Microsoft Visual Basic 6, you'll notice some new features in Microsoft Visual Basic 2005, including the following:

Категории