How to lock text boxes and other controls in the coding instead of Enable = false?

Apr 29 2008 7:24 AM

Dear Frieds,

I have a problem, here it is....

When you want to lock controls in the window form, What is the coding for that?

Because, there I want to lock all controls in the window form when form is loading and only allow to view data through the window form. And then When you click on the Edit button or Add New button only  that all the controls can be unlocked.

So, How do you lock text boxes?


Answers (3)