By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,471 Members | 711 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,471 IT Pros & Developers. It's quick & easy.

button events

P: n/a
Can anyone tell me what event i would use to change the background colour of a button while the mouse is over the button. I could not find the mouseover event

The colour will need to change back to its origional when the mouse is not over the butto

Thx
Jul 21 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Cor
Hi Avni,

Just use the button mousehoover and mouseleave events to change the
backcolor.

I hope this helps?

Cor
The colour will need to change back to its origional when the mouse is not

over the button
Jul 21 '05 #2

P: n/a
Cor

MouseEnter instead of MouseHoover
Jul 21 '05 #3

P: n/a
Thank you co
:o)
Jul 21 '05 #4

P: n/a
Hi Cor

U dont happen to know what colour i use to get back to the origional 'Control' colou
It does not seem to appear in the list provided by the dybnamic code help

i.e
Button1.BackColor = Button1.BackColor.contro
does not exist. How would i use this colour?
Jul 21 '05 #5

P: n/a
Cor
Hi Avni,

button1.backcolor =systemcolors.control

I hope this helps?

Cor
Button1.BackColor = Button1.BackColor.control
does not exist. How would i use this colour?

Jul 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.