0

Dear Freinds

Is it possible in vb.net that when my mouse focus in button it size increase the button or change like when we click on google images it comes in front

2
Contributors
1
Reply
9
Views
6 Years
Discussion Span
Last Post by ShahanDev
0

Hi!

This can help you:

Dim defaultBtnSize As Size
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        defaultBtnSize = Button1.Size
    End Sub

    Private Sub Button1_MouseEnter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.MouseEnter
        Me.Button1.Size = New Size(100, 50)
    End Sub

    Private Sub Button1_MouseLeave(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.MouseLeave
        Me.Button1.Size = defaultBtnSize
    End Sub
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.