Search found 1 match

by annisu
Wednesday 15th January 2020 5:11am
Forum: General
Topic: Addressing several objects on a form in 1 line of code
Replies: 8
Views: 9077

Addressing several objects on a form in 1 line of code

Greetings! I have this code: Separator1.Foreground = Color.Green Separator2.Foreground = Color.Green Separator3.Foreground = Color.Green And so on. There are 15 of those separators. This looks excessive and ugly. If it were VB5, I'd solve this problem easily: Separator$.Foreground = Color.Green But ...