The text of each buttons can change by the user and I want to analyze the button texts. I know I can put their texts in a string array but, since I want more properties, I want to put them in a List<Button>
. But, the problem is that every time I change the text of one of the buttons in that list, the real button's text changes too.
How can I declare the list so that the original buttons aren't changed?
I've tested this:
Button bt1 = A1;
Button bt2 = (Button)bt1;
bt1.Text = "A";
bt2.Text = "B";
but the text of the button change to "B".