Short answer...you have two values. To store/retrieve them, you need two settings. Currently, you have only one. In case this isn't clear, I'll elaborate.
It seems you are beginning to learn programming. There's a lot of great advice about the topic. One piece of advice I received (early on) was to assume the computer is exceptionally dumb. Its good at following instructions, but absolutely terrible at interpreting them.
Sometimes, its helpful to roleplay, pretending you're the computer. So, let's consider a couple of lines from your code.
label2.Text = Properties.Settings.Default.Label;
label1.Text = Properties.Settings.Default.Label;
From your perspective, you expect two different values for
label1.Text
and
label2.Text
. Yet, you assign the same "thing" to both of them:
Properties.Settings.Default.Label
.
Imagine yourself, as the computer, how would you make sense of this?
From this new perspective, as a computer, you've been asked for an identical "thing" (
Properties.Settings.Default.Label
) twice.
What would you do? Probably, what the computer does...return exactly the same thing twice. So,
label1.Text
and
label2.Text
receive the exact same value
Properties.Settings.Default.Label
. If you're honestly imagining yourself as the computer, what else could you possibly do?
So, how could you fix this? Maybe, you could ask the computer to store and retrieve
two different settings? To do this, you would need to give each of these two settings different
names.
Otherwise, like when you yell "John" in a crowded room, you're likely to get confused responses from multiple people. Or, in bars in some countries, you may receive directions to the toilette :)
So, consider, the subtle difference between the earlier two lines and the following two lines:
label2.Text = Properties.Settings.Default.Label2;
label1.Text = Properties.Settings.Default.Label1;
Here, we have two different names for two different settings. We retrieve each of the settings separately. To complete the fix, we would also need to store them separately.
In short, you are storing/retrieving two settings. So, you need to include two
separate settings, not just one.
Hope this helps. Good luck!