Here is a simple Microsoft Small Basic program that handles multiple events. A graphics window is displayed with a text box and a button.
Every time the user uses the mouse to click on the button, the message 'Button Clicked Event Raised' is displayed in a message window. The user acknowledges the message by clicking on the 'OK' button in the message window.
Click the mouse in the text box window. When the user types a letter or number in the text box window, the message 'Text Typed Event Raised' appears in a message window. The user acknowledges the message by clicking on the 'OK' button in the message window.
Every time the user uses the mouse to click on the button, the message 'Button Clicked Event Raised' is displayed in a message window. The user acknowledges the message by clicking on the 'OK' button in the message window.
Click the mouse in the text box window. When the user types a letter or number in the text box window, the message 'Text Typed Event Raised' appears in a message window. The user acknowledges the message by clicking on the 'OK' button in the message window.