Can I change all the forecolor and backrground colors using
me.controls some how ? That way I don't have to list all the controls on every form ?
Printable View
Can I change all the forecolor and backrground colors using
me.controls some how ? That way I don't have to list all the controls on every form ?
Yes, you can. Here's an example.
Code:Dim c As Control
On Error Resume Next
For Each c In Me.Controls
If TypeOf c Is TextBox Then
c.BackColor = RGB(x, x, x)
c.ForeColor = RGB(x, x, x)
End If
Next
Thanks