Property in a user control

[Migrated content. Thread originally posted on 02 January 2012]


I have written a new user control in C# that has a public property:

        [Description("Will show this message")]
        public string Message
            get { return textBox1.Text; }
            set { textBox1.Text = value; }

I can see this property in the designer, and I am able to change it too.

But, when I try to do that inside the code, Visual COBOL never finds my property. I want to to do something like this:

           set cntlAction1::Message to "Opening Cash, please Wait...".