For each label in me.controls
Is there anyway to have a for each statement that gets all of the labels in the form except for a few?
example i have
dim x as label
for each x in me.controls
x.tag = randomnumber
next
i want to get every label except for 2 of them (name1 and name2)
thanks for your help :D
Re: For each label in me.controls
nevermind, i figured it out :P
Re: For each label in me.controls
vb Code:
For Each lbl As Label In Me.Controls.OfType(Of Label).Except(New Label() {name1, name2})
lbl.Tag = randomnumber
Next