VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Changing the color of the textbox with scrollbar

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

Rate 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

Download this snippet    Add to My Saved Code

Changing the color of the textbox with scrollbar Comments

No comments have been posted about Changing the color of the textbox with scrollbar. Why not be the first to post a comment about Changing the color of the textbox with scrollbar.

Post your comment

Subject:
Message:
0/1000 characters