Chapter 17 View contents of this chapter

Introduction

Today's lesson augments your Visual Basic knowledge by showing you how to write programs that respond to mouse events (click, drag, etc.). One of the foundations of Windows applications is that they respond to the mouse. Windows sends mouse events to your application when the user works with the mouse.

Play Sound You should write your programs to respond to both the keyboard and the mouse.

Mouse Events

You have full control over how your application responds to mouse events. A mouse event can be triggered by any of the following actions:

  •  Mouse movement 
  •  A button click 
  •  Double click 
  •  Right click 
  •  Drag-drop operation 



© Universal Teacher Publications        INDEX Previous Screen Next Screen