hot spotsHot Spots

We 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 panelnamed PnlComputer and set the following properties:

Add a tooltip tooltip, with the default name ToolTip1.

Add a label label named LblMonitor and set the following properties:

Run 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.


INDEX, Controls, Adding Pictures, The PictureBox Control, Tool tips and Naming controls, List of Controls, Hot Spots
Next lesson: Writing Code in Visual Basic

Copyright © Zebra0.com
All rights reserved worldwide.

 
 

Hot Spots