Hello!

I use UserControl, but property Text do not show in properties
window in designer.

I test it -

[
EditorBrowsable(EditorBrowsableState.Always)
]
public override string Text
{
get
{
return base.Text;
}
set
{
base.Text = value;
this.Invalidate();
}
}

But Text still not show.

Please help me.

Petr

Re: problem with text property by Tim

Tim
Thu Nov 24 09:08:33 CST 2005

You'll need to add some more attributes.
http://groups.google.com/group/microsoft.public.dotnet.framework.compactframework/browse_frm/thread/41e13beea084d415/4d81517de3a5c777?hl=en#4d81517de3a5c777

--
Tim Wilson
.NET Compact Framework MVP

"Petr Svoboda" <petr.svoboda@sunnysoft.cz> wrote in message
news:e4Sb1BO8FHA.4012@TK2MSFTNGP14.phx.gbl...
> Hello!
>
> I use UserControl, but property Text do not show in properties
> window in designer.
>
> I test it -
>
> [
> EditorBrowsable(EditorBrowsableState.Always)
> ]
> public override string Text
> {
> get
> {
> return base.Text;
> }
> set
> {
> base.Text = value;
> this.Invalidate();
> }
> }
>
> But Text still not show.
>
> Please help me.
>
> Petr