Ajay Baldeo

Ajay Baldeo

  • NA
  • 1
  • 1.9k

C# Coding Shortcuts

Dec 21 2012 1:07 PM
Hi All,

I'm not sure if there is a shorter way to do what I'm trying to do but if there is I would appreciate your help.

Here is what I'm doing:

lbl_item2.Visible =
false;
lbl_item3.Visible =
false;
lbl_item4.Visible =
false;
lbl_item5.Visible =
false;
lbl_item6.Visible =
false;
lbl_item7.Visible =
false;
lbl_item8.Visible =
false;
lbl_item9.Visible =
false;
lbl_item10.Visible =
false

Can I put this in a loop somehow?

Answers (1)