Results 1 to 2 of 2

Thread: Change the backcolor of a control................

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 1999
    Location
    INDIA
    Posts
    5
    Hi ,
    I want to change the backcolor of a command button when I move the mouse over the button. Can anyone help me by either lending me some code or providing some url where I can find some examples for this ?

    Thanks in advance,
    Ramesh

  2. #2
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    No Problem, set the command buttons style to graphical. on the command1_mousemove event set the command button backcolour to the colour you need. on the form_Mousemove event set the backcolour to vbButtonFace, if there are any other controls right next to your command button set the backcolour to vbButtonFace on their mousemove events too.

    Hope this helps

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