Hot SpotsWe will end the lesson on controls by creating a program that shows the parts of the computer using a panel, ToolTip, and labels.
Start a new windows application named Hot Spots. build the form as shown below:
Add a panel
named PnlComputer and set the following properties:
Add a tooltip
, with the default name ToolTip1.
Add a label
named LblMonitor and set the following properties:
Run
the program. When you move the mouse over the monitor you will see a hand for the cursor and the tooltip text appears with the word "monitor".
Copy LblMonitor and paste it. Change the name to LblKeyboard. Change the tooltip to keyboard and position it over the keyboard in the picture. Since you copied it, the other properties are already set the way we want them.
Continue to label the rest of the parts of the computer with hot spots.