Franck,
In the designer, there should be a row in the property box which allows
you to change the access modifier from private to public.
Or, just change the declaration in the designer-generated code (or
hand-generated, if you are not using a designer) to not be
private/protected.

Signature
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
> as exposing the object property is there a fast way like for example:
> public textbox1.text();
>
> something look like this, any example of putting public the text
> property of a textbox would be nice
Franck - 06 Sep 2007 16:26 GMT
On Sep 6, 11:10 am, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.com> wrote:
> Franck,
>
[quoted text clipped - 14 lines]
> > something look like this, any example of putting public the text
> > property of a textbox would be nice
but in that case it allow the full control of the object
Nicholas Paldino [.NET/C# MVP] - 06 Sep 2007 16:40 GMT
Franck,
Yes, which is the behavior that you get in VB. If you don't want to
expose full control of the object, then you have to expose a method or
property on the hosting control/form which takes the parameters that you
need, and performs the action you want.

Signature
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
> On Sep 6, 11:10 am, "Nicholas Paldino [.NET/C# MVP]"
> <m...@spam.guard.caspershouse.com> wrote:
[quoted text clipped - 19 lines]
>
> but in that case it allow the full control of the object
Franck - 06 Sep 2007 17:04 GMT
On Sep 6, 11:40 am, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.com> wrote:
> Franck,
>
[quoted text clipped - 34 lines]
>
> > but in that case it allow the full control of the object
got it thank you