0

Hi, would u please help me with the buttons i use on my vb.net forms. I want a way in which if i drag my mouse onto a particular button it would increase its size and if i click onto it, it can respond to the codes. May be like i want it too look like those Macintosh laptop icons, whereby if u put my mouse on it, it increases its size. Is there any way like that, please help me with the steps and codes if possible thnks.

3
Contributors
5
Replies
6
Views
6 Years
Discussion Span
Last Post by Jollyyy100
0

Well.
You have the MouseEnter, MouseLeave and Click events.
And you also have the Width and Height properties.

0

use mouse enter event

when you enter the mouse on button event will fire and write code for increasing size like

button1.height=50
button1.Width=50

Mouse Leave event

and this event will fire when your currsor leave from button at that event write to reduse size of button like

button1.height=30
button1.Width=30

if use full and problem solved please Mark as solved

0

Thankyou so much, i think i learnt how to do this the first time and something new as well

0

done with it marke it as sovled thanks

yup i marked it as solved thnks again

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.