VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Set any dynamic color to back of textbox in simple way

by Ravikant Amane (3 Submissions)
Category: Graphics
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Thu 10th August 2006
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Set any dynamic color to back of textbox in simple way

API Declarations


'Take 3 Labels for display values of Hscroll & Change name label3,label8,label9
'take text box change name txtrno


Rate Set any dynamic color to back of textbox in simple way




Private Sub HScroll1_Change()
   Label3.Caption = HScroll1.Value
   txtrno.BackColor = RGB(HScroll1.Value, HScroll2.Value, HScroll3.Value)
End Sub

Private Sub HScroll2_Change()
    Label8.Caption = HScroll2.Value
    txtrno.BackColor = RGB(HScroll1.Value, HScroll2.Value, HScroll3.Value)
End Sub

Private Sub HScroll3_Change()
    Label9.Caption = HScroll3.Value
    txtrno.BackColor = RGB(HScroll1.Value, HScroll2.Value, HScroll3.Value)
End Sub



Download this snippet    Add to My Saved Code

Set any dynamic color to back of textbox in simple way Comments

No comments have been posted about Set any dynamic color to back of textbox in simple way. Why not be the first to post a comment about Set any dynamic color to back of textbox in simple way.

Post your comment

Subject:
Message:
0/1000 characters