Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
 
 
 
 
 
 
 
Old Pages
 
Old Index
Site Map
What's New
 
Books
How To
Tips & Tricks
Tutorials
Stories
Performance
Essays
Links
Q & A
New in VB6
Free Stuff
Pictures
 
 
 
TitleMake interesting graphical button effects
Keywordsbutton, effects
CategoriesControls, Multimedia
 
Thanks to Jakob Kofod.

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
 
 
Copyright © 1997-2003 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated