M
Morten Snedker
Me.tvKunder.ForeColor = Color.FromArgb(l)
changes the color of the Treeview control 'tvKunder' immidiately.
Using a loop:
For Each c In Me.Controls
If (TypeOf c Is ListBox) Or (TypeOf c Is TreeView) Then
c.BackColor = Color.FromArgb(l)
c.Refresh()
End If
Next
...won't change the color before restart of application?
I tried refreshing the control in the For-Next and the entire form
outside the For-Next. Didn't help either.
Regards /Snedker
changes the color of the Treeview control 'tvKunder' immidiately.
Using a loop:
For Each c In Me.Controls
If (TypeOf c Is ListBox) Or (TypeOf c Is TreeView) Then
c.BackColor = Color.FromArgb(l)
c.Refresh()
End If
Next
...won't change the color before restart of application?
I tried refreshing the control in the For-Next and the entire form
outside the For-Next. Didn't help either.
Regards /Snedker