Is there a way to change the size of the toolstrip button on mousehover event?
I tried this but didn't work.
Private Sub tsDriver_MouseHover(ByVal sender As Object, ByVal e As System.EventArgs) Handles tsDriver.MouseHover
Dim pt As Point
pt.X = 60
pt.Y = 70
tsDriver.Size = pt
End Sub
I'd like to have the effect like, when mouse is hovered on the button, it will grow big and when the mouse leaves it will go back to its original size.
You should instantiate a the size, which is a separate object.Try this, it should work;
Note that the MouseHover event only triggers when the mouse cursor enters the control location.
So, for the button to shrink to original size, the MouseLeave event should be coded;