Changing the color of the textbox with scrollbar
Changing the color of the textbox with scrollbar
Rate Changing the color of the textbox with scrollbar
(1(1 Vote))
//in the change event of the each scroll bar write the following code,you have to pass three values as rgb requires three values
Private Sub HScroll1_Change()
text1.BackColor = RGB (Scroll1.Value,Scroll2.Value,Scroll3.Value)
End Sub
Private Sub HScroll2_Change()
text1.BackColor = RGB(Scroll1.Value,Scroll2.Value,Scroll3.Value)
End Sub
Private Sub HScroll3_Change()
text1.BackColor = RGB(Scroll1.Value,Scroll2.Value,Scroll3.Value)
End Sub
//you can apply the same code to the form.
//just write form1 instead of text1
Changing the color of the textbox with scrollbar Comments
No comments yet — be the first to post one!
Post a Comment