|
Question : Easy way to make a c# form readonly
|
|
In VBA, I could make a form Readonly by setting the AllowEdits, AllowAdditions, and AllowDeletions properties to false. I'm looking for something like that in C#. It seems a little brute forceish to recurse through the controls on the form and set ReadOnly or Enabled (not all controls have a ReadOnly property?), so I was looking for a way to do this with less code.
Thanks
|
|
Answer : Easy way to make a c# form readonly
|
|
If you want your controls to be readonly, why not use labels instead.
Is there any logic which decides whether your form should be readonly?
|
|
|
|