Murach's Visual Basic 2005
How to code and test a Windows Forms application

This chapter shows you how to write the Visual Basic code for the Windows form that was designed in chapter 2. This chapter also gets you started with practical debugging techniques. When you finish this chapter, you'll be able to use Visual Studio to (1) design a form, (2) write the Visual Basic code for the form, and (3) debug the form.

Chapter 3 How to code and test a Windows Forms application
An introduction to coding 56
Introduction to object-oriented programming 56
How to refer to properties, methods, and events 58
How an application responds to events 60
How to add code to a form 62
How to create an event handler for the default event of a form or control 62
The event handlers for the Invoice Total form 64
How to code with a readable style 66
How to code comments 68
How to detect and correct syntax errors 70
4 new coding skills 72
How to use code snippets 72
How to rename identifiers 74
How to use the Smart Compile Auto Correction feature 76
How to use the My feature 78
Other skills for working with code 80
How to use the toolbar buttons 80
How to collapse or expand code 80
How to print the source code 80
How to get help information 82
How to run, test, and debug a project 84
How to run a project 84
How to test a project 86
How to debug runtime errors 88




Murach's VB 2005

Learn more about this book

Download this chapter

View the table of contents

Add this book to your cart



Our Ironclad Guarantee

First, try our books for 90 days. Then, if you aren't completely convinced that our books are the best ones you've ever used, you can return them for a full refund...no questions asked.