.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Code Snippets >> Visual Studio >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Get the cursor on to the button it will show more then one button

Posted By:laptop charles       Posted Date: August 12, 2010    Points: 10    Category: Visual Studio    URL: http://www.dotnetspark.com  

It shows more then one button
 

It has drag and drop one button then add one mouse enter event.copy the code.
Public Class Form1

    Inherits System.Windows.Forms.Form

    Private WithEvents cha As Button


    Private Sub Button1_MouseEnter(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.MouseEnter


   



        cha = New Button



        cha.SetBounds(700, 0, 75, 23)

        cha.Text = "HAI"

        Me.Controls.Add(cha)


        cha = New Button
        cha.SetBounds(135, 15, 75, 23)

        cha.Text = "HAI"

        Me.Controls.Add(cha)

        cha = New Button

        cha.SetBounds(390, 30, 75, 23)

        cha.Text = "HAI"

        Me.Controls.Add(cha)


        cha = New Button

        cha.SetBounds(50, 50, 75, 23)

        cha.Text = "HAI"

        Me.Controls.Add(cha)

        cha = New Button


        cha.SetBounds(50, 20, 75, 23)

        cha.Text = "HAI"

        Me.Controls.Add(cha)

        cha = New Button

        cha.SetBounds(100, 200, 75, 23)

        cha.Text = "HAI"

        Me.Controls.Add(cha)
        cha = New Button


        cha.SetBounds(200, 30, 75, 23)

        cha.Text = "HAI"

        Me.Controls.Add(cha)

        cha = New Button

        cha.SetBounds(400, 500, 75, 23)

        cha.Text = "HAI"

        Me.Controls.Add(cha)


        cha = New Button


        cha.SetBounds(500, 600, 75, 23)

        cha.Text = "HAI"

        Me.Controls.Add(cha)

        cha = New Button



        cha.SetBounds(440, 440, 75, 23)

        cha.Text = "HAI"

        Me.Controls.Add(cha)

        cha = New Button



        cha.SetBounds(330, 330, 75, 23)

        cha.Text = "HAI"

        Me.Controls.Add(cha)

        cha = New Button




        cha.SetBounds(120, 670, 75, 23)

        cha.Text = "HAI"

        Me.Controls.Add(cha)

        cha = New Button




        cha.SetBounds(230, 580, 75, 23)

        cha.Text = "HAI"

        Me.Controls.Add(cha)


        cha = New Button


        cha.SetBounds(620, 890, 75, 23)

        cha.Text = "HAI"

        Me.Controls.Add(cha)
        cha = New Button



        cha.SetBounds(50, 900, 75, 23)

        cha.Text = "HAI"

        Me.Controls.Add(cha)

        cha = New Button


        cha.SetBounds(670, 990, 75, 23)

        cha.Text = "HAI"

        Me.Controls.Add(cha)

        cha = New Button


        cha.SetBounds(120, 400, 75, 23)

        cha.Text = "HAI"

        Me.Controls.Add(cha)

        cha = New Button


        cha.SetBounds(20, 300, 75, 23)

        cha.Text = "HAI"

        Me.Controls.Add(cha)


        cha = New Button


        cha.SetBounds(320, 560, 75, 23)

        cha.Text = "HAI"

        Me.Controls.Add(cha)

        cha = New Button



        cha.SetBounds(40, 780, 75, 23)

        cha.Text = "HAI"

        Me.Controls.Add(cha)

        cha = New Button


        cha.SetBounds(190, 200, 75, 23)

        cha.Text = "HAI"

        Me.Controls.Add(cha)


        cha = New Button

        cha.SetBounds(80, 560, 75, 23)

        cha.Text = "HAI"

        Me.Controls.Add(cha)








    End Sub

   
End Class

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend