Login Register






Thread Rating:
  • 0 Vote(s) - 0 Average


Dynamic Color Change filter_list
Author
Message
Dynamic Color Change #1
Works with vb2010 didnt tried vb6

Create

3 text box
1 button

Double click button
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim rgb1, rgb2, rgb3 As Integer
        rgb1 = TextBox1.Text
        rgb2 = TextBox2.Text
        rgb3 = TextBox2.Text
        Me.BackColor = Color.FromArgb(rgb1, rgb2, rgb3)

    End Sub
End Class
[Image: ngT5EVj.png]
wow so binary much 0 very 1

Reply

RE: Dynamic Color Change #2
This won't work with Option Strict On (and it should be). Nice implicit conversions here. Make an animator that changes through the colors of the HSL cylinder in an endless sequence now. Smile
-- cxS

[ Haskell/.NET/C/C++ - Software Engineer ]

Reply







Users browsing this thread: 1 Guest(s)