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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -