Tuesday, 20 March 2018

Program to Display the color according to RGB Numbers



Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    End Sub

    Dim c1, c2, c3 As Integer
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        c1 = TextBox1.Text
        c2 = TextBox2.Text
        c3 = TextBox3.Text
        Me.BackColor = Color.FromArgb(c1, c2, c3)

    End Sub
End Class

No comments:

Post a Comment

Note: only a member of this blog may post a comment.