PDA

View Full Version : BackLight of a Button



anafor2004
21st January 2008, 14:24
Hi All
I want to prepare a form, On this form there are two buttons if I press on right arrow key on keyboard, the right button's picture would be lighter.If I press on left key of keyboard, the left button's picture would be lighter. How may i do this ("Sorry for my english")

wysota
21st January 2008, 15:55
Reimplement the paint event and change the color of the button depending on whether it has focus or not. Then just make sure pressing arrow keys changes the focus properly.