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

Posted on 2006-04-13
Last Modified: 2008-01-09
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


Question by:Bulle
    LVL 2

    Expert Comment

    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.

    Author Comment

    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
            base.Text = value;


    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 :

    Recompile the project ... and you should see teh text property !!!

    Accepted Solution

    Closed, 250 points refunded.
    The Experts Exchange
    Community Support Moderator of all Ages

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    Bit flags and bit flag manipulation is perhaps one of the most underrated strategies in programming, likely because most programmers developing in high-level languages rely too much on the high-level features, and forget about the low-level ones. Th…
    Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now