调色板的VB程序怎么写啊?

来源:百度知道 编辑:UC知道 时间:2024/05/22 15:25:32
设计一个调色板应用程序,使用三个滚条作为三种基本颜色的输入工具,合成的颜色显示在右边的颜色区。颜色区实际上是一个文本框,用合成的颜色设置其backcolor属性。当完成调色以后,用“设置前景色”或‘设置背景色“按扭设置右边文本框的颜色。

'red,blue,yellow为三个滚条动的名称
Private Sub Command1_Click()
Text1.BackColor = RGB(red.Value, yellow.Value, blue.Value)

End Sub

Private Sub Command2_Click()
Text1.ForeColor = RGB(red.Value, yellow.Value, blue.Value)
End Sub

Private Sub Form_Load()
red.Min = 0
red.Max = 255
yellow.Min = 0
yellow.Max = 255
blue.Min = 0
blue.Max = 255
End Sub

我编了一个。在这里无法上传。
你可以到http://ljlx.b.lunqun.com/read.php?tid=161318
下载看看。
我也是新手,共同进步哦!