Results 1 to 3 of 3

Thread: ***-----Are There Any MouseOver Effects for Buttons---***

  1. #1

    Thread Starter
    Lively Member mykg4orce's Avatar
    Join Date
    Oct 2000
    Location
    CANADA
    Posts
    92

    Exclamation

    I need to now if there is a way of making mouse over efects with buttons, i.e if i move my mouse over a commandbutton it will change colors and then when i remove the mouse it will revert to its original state. I guess what i am asking for is rollover effects.

    thanks Jop for the help before....

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    Code:
    Option Explicit
    'add a checkbox to a form and set it's style to graphical
    
    Private Sub Check1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
        Check1.BackColor = vbBlue
        Check1.ForeColor = vbYellow
    End Sub
    
    
    Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
        Check1.BackColor = vbRed
        Check1.ForeColor = vbWhite
    End Sub
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  3. #3
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    If you're really desperate for changing the Button's forecolor look here my friend:

    http://www.mvps.org/vbnet/code/subcl...ttoncolour.htm
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

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