sambase
01-06-2005, 11:53 AM
i was playing around with some code and came up with this..
Private Sub Form_Load()
For i = 0 To 8
With Text1(i)
.Text = .Index
.BackColor = RGB(.Index * 15, .Index * 20, .Index * 25)
.ForeColor = RGB(255, 255, 255)
.Width = 3000
.Height = 50
.Top = Val(.Index * 190)
.Left = 0
With Form1
.Width = 3000
.Height = 3000
End With
End With
Next i
End Sub
i have 9 text boxes on a form which the backcolor for each creates a gradient style look on the form. i would like to know how to increase the RGB for each text box on an event. so eventually the gradient will change colour.
thanks.
sam
Private Sub Form_Load()
For i = 0 To 8
With Text1(i)
.Text = .Index
.BackColor = RGB(.Index * 15, .Index * 20, .Index * 25)
.ForeColor = RGB(255, 255, 255)
.Width = 3000
.Height = 50
.Top = Val(.Index * 190)
.Left = 0
With Form1
.Width = 3000
.Height = 3000
End With
End With
Next i
End Sub
i have 9 text boxes on a form which the backcolor for each creates a gradient style look on the form. i would like to know how to increase the RGB for each text box on an event. so eventually the gradient will change colour.
thanks.
sam