Hi Everyone,
I am playing around in VB by making my own controls by Inheriting objects such as Buttons. I am new to creating custom controls, and wonder if anybody can help me.
I have created a custom button, and given it a background image.
Now normally buttons in windows when you hover your mouse over a button the button changes - such as a change in picture or colour.
We can recreate a similar effect by overriding the onMouseHover event, and changing the background image to another image to get a hovered effect which is fine, however when using the onMouseHover event I have found it is much slower at changing the picture than a normal button.
This makes me to believe that the onMouseHover event is not suitable or the correct for this event. I.E. To make the button change appearance depending on the button state (hovered).
What do I override or change, to recreate the speed at which the button changes appearance depending on the state of the button?