Advertisement

02.22.2008 at 02:57PM PST, ID: 23186205
[x]
Attachment Details

Easy way to make a c# form readonly

Asked by jpipkins in Microsoft Visual C#.Net, Visual Studio .NET 2005, .NET Framework 2.0

Tags: C#, WinForms

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.

ThanksStart Free Trial
[+][-]02.22.2008 at 10:47PM PST, ID: 20963933

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]02.24.2008 at 09:14PM PST, ID: 20973064

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Visual C#.Net, Visual Studio .NET 2005, .NET Framework 2.0
Tags: C#, WinForms
Sign Up Now!
Solution Provided By: Novice_Novice
Participating Experts: 2
Solution Grade: B
 
 
[+][-]02.24.2008 at 09:23PM PST, ID: 20973086

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.25.2008 at 07:48AM PST, ID: 20976432

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.25.2008 at 08:36PM PST, ID: 20981638

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628