Highlighted
Absent Member.
Absent Member.
649 views

Property in a user control

Jump to solution

[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...".
0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Property in a user control

Jump to solution
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.

View solution in original post

0 Likes
2 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Property in a user control

Jump to solution
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.

View solution in original post

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: Property in a user control

Jump to solution
I think there was a problem regarding the control's refresh inside the form, because it worked fine next time I opened the project.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.