Usercontrol's Text property not visible at design (with .Net compact framework)

Hello,
I created a custom control using UserControl class.

I've overriden the Text property but it is not displayed in the porperty window at design time.

Can somebody help me make this property visible ?

Do not forget that I use Compact Framework.

I know that I have to create a XML file DesignTimeAttributes.xmta but don't know how to do it exactly.

Thankx in advance

Greetings

Bulle
BulleAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

quoclanCommented:
MSDN have many examples about creating user control, example, article named:
- "Creating a Windows Form User Control"
- "Building Windows Forms Controls and Components with Rich Design-Time Features"
....
Hope this help you.
BulleAuthor Commented:
Thak you quoclan, but these articles do not help me so far, but I've found the solution by myself.

Here it is for Compact Framework and VS 2005 :

Override the Text property (code should be like this one) :

    public override string Text
    {
      get
      {
        return(base.Text);
      }
      set
      {
        base.Text = value;
        this.Invalidate();

      }
    }

The right click on the usercontrol in the solution explorer, choose "View Class Diagram" and then display the class details view for the control.

In this view, you should see the "Text" property, edit the "Custom attributes" of the "Text" property.
And add the 4 lines listed below in the window appearing :
 EditorBrowsable(EditorBrowsableState.Always)
 Browsable(true)
 DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)
 Bindable(true)

Recompile the project ... and you should see teh text property !!!
GranModCommented:
Closed, 250 points refunded.
GranMod
The Experts Exchange
Community Support Moderator of all Ages

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.