Skip to main content

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

Hello,

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

        [Category("Behaviour")]
        [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...".

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

Hello,

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

        [Category("Behaviour")]
        [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...".
I just tried a simple example and it worked fine for me.

I tried to attach the example to this post but I get an error so I will e-mail the example directly to you.

Please let me know if this is the same thing you are trying to accomplish...

I used Visual COBOL R4 Update 2.

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

Hello,

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

        [Category("Behaviour")]
        [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...".
I think there was a problem regarding the control's refresh inside the form, because it worked fine next time I opened the project.