In that case... use the function above and this code.
It darkens the form once...
VB Code:
'''in a button click Me.BackColor =darkencolor(Me.BackColor) Me.ForeColor = darkencolor(Me.ForeColor) Dim X As Control For Each X In Me.Controls X.ForeColor = darkencolor(X.ForeColor) X.BackColor = darkencolor(X.BackColor) Next '''





Reply With Quote