Public controls m.a Guest Posts: n/a 's Computer Specifications 9th Jan 2009 Hello, Is there any way to control how designer defines control variables in designers.cs file? By default, all controls, which are created by designer, are protected, but I want some of them to be public. I know that I can move them to code behind file, but I am wondering if there is any way to ask designer to define them as public. Regards Ignacio Machin ( .NET/ C# MVP ) Guest Posts: n/a 's Computer Specifications 9th Jan 2009 On Jan 9, 8:37*am, "m.a" &lt;m...@spamoff.com&gt; wrote: &gt; Hello, &gt; &gt; * *Is there any way to control how designer defines control variablesin &gt; designers.cs file? &gt; &gt; By default, all controls, which are created by designer, are protected, but &gt; I want some of them to be public. I know that I can move them to code behind &gt; file, but I am wondering if there is any way to ask designer to define them &gt; as public. &gt; &gt; Regards If you want some of them to be accessible outside the class create a property that wrap them. m.a Guest Posts: n/a 's Computer Specifications 9th Jan 2009 "Ignacio Machin ( .NET/ C# MVP )" &lt;(E-Mail Removed)&gt; wrote in message news:62151034-8b2e-439d-b641-(E-Mail Removed)... On Jan 9, 8:37 am, "m.a" &lt;m...@spamoff.com&gt; wrote: &gt; Hello, &gt; &gt; Is there any way to control how designer defines control variables in &gt; designers.cs file? &gt; &gt; By default, all controls, which