by sanjay shenvekar (1 Submission)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Thu 14th June 2001
Date Added: Mon 8th February 2021
Rating:
(1 Votes)
Changing the color of the textbox with scrollbar
//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