Results 1 to 5 of 5

Thread: [VB6] Change Backstyle of Label when Mouse Over Label

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2007
    Location
    White Oak, PA
    Posts
    25

    [VB6] Change Backstyle of Label when Mouse Over Label

    Hello everyone! I am using Microsoft Visual Basic 6. My project has a Form with a Label. How do I change the BackStyle of the Label from Transparent to Opaque when the mouse is over the Label and back from Opaque to Transparent when the mouse is not over the Label? My code follows...

    VB Code:
    1. Private Sub Label1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    2.     Label1.BackStyle = Transparent
    3. End Sub

    That code changes the BackStyle of the Label from Transparent to Opaque when the mouse is over the Label, but does not change it back from Opaque to Transparent when the mouse is not over the label. How do I do this? Thank you!
    Last edited by Shadowz O Death; Aug 20th, 2008 at 01:56 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width