c# - Enabling many textBoxes at the same time -
i have 10 textboxes
in 1 form , have checkbox
.
i checkbox control if textboxes enabled or not. know can textbox1.enabled = true; textbox2.enabled = true; etc
there way in one line
or shorter?
you can in 1 line of code follows,
you place text boxes inside group box or panel.
pnl.enabled = chk.checked
Comments
Post a Comment