18 Program to change Background color of the form when user clicks on Button in VB.NET

Code:

Public Class Form1
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load

    End Sub

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        BackColor = Color.DeepSkyBlue
    End Sub
End Class







Output:  

Before Click:



After Click:


Previous
Next Post »