Murach's Visual Basic 2005
How to code procedures and event handlers

This chapter shows you how to code and call procedures and how to generate event handlers for all types of events. With those skills, you'll be able to logically divide your code into smaller procedures so it is easier to read, test, and debug.

Chapter 6 How to code procedures and event handlers
How to code and call procedures 164
How to code Sub procedures 164
How to call Sub procedures 166
When and how to pass arguments by reference and by value 168
How to code and call Function procedures 170
How to work with events 172
How to start an event handler for any event 172
How to handle multiple events with one event handler 174
How to use the Code Editor to start an event handler 176
How to add and remove event wiring 178
Another version of the Future Value application 180
The Function procedure 180
The event handlers 180




Murach's VB 2005

Learn more about this book

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.