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? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -