News:

GinGly.com - Used by 85,000 Members - SMS Backed up 7,35,000 - Contacts Stored  28,850 !!

Main Menu

Program hides that label's image.

Started by nandagopal, May 18, 2009, 04:37 PM

Previous topic - Next topic

nandagopal

Put an Image control under a Label control. When the mouse moves over the label, change the image.

This example displays images under a series of labels. When you move the mouse over one, the program hides that label's image.


Private Sub Label2_MouseMove(Button As Integer, Shift As _
    Integer, X As Single, Y As Single)
    Label15.Alignment = 2
    Label15.Caption = "Click here to view greets"

    Image2.Visible = False
    Label2.Visible = False

    Image3.Visible = True
    Label3.Visible = True

    Image4.Visible = True
    Label4.Visible = True

    Image5.Visible = True
    Label5.Visible = True

    Image6.Visible = True
    Label6.Visible = True

    Image7.Visible = True
    Label7.Visible = True
End Sub