设计调色板应用程序,用三个滚动条作为三种基本颜色的输入工具,合成的颜色显示在右边的颜色区。颜色区是
展开全部
Dim a As Integer
Dim b As Integer
Dim c As Integer
Private Sub Form_Load()
HScroll1.Max = 255
HScroll2.Max = 255
HScroll3.Max = 255
Label1 = "调色区"
End Sub
Private Sub HScroll1_Change()
a = HScroll1.Value
Label1.BackColor = RGB(a, b, c)
End Sub
Private Sub HScroll2_Change()
b = HScroll2.Value
Label1.BackColor = RGB(a, b, c)
End Sub
Private Sub HScroll3_Change()
c = HScroll3.Value
Label1.BackColor = RGB(a, b, c)
End Sub
Dim b As Integer
Dim c As Integer
Private Sub Form_Load()
HScroll1.Max = 255
HScroll2.Max = 255
HScroll3.Max = 255
Label1 = "调色区"
End Sub
Private Sub HScroll1_Change()
a = HScroll1.Value
Label1.BackColor = RGB(a, b, c)
End Sub
Private Sub HScroll2_Change()
b = HScroll2.Value
Label1.BackColor = RGB(a, b, c)
End Sub
Private Sub HScroll3_Change()
c = HScroll3.Value
Label1.BackColor = RGB(a, b, c)
End Sub
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询