Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

Can label1 text&property and label2 text&property become one and display it in label3 and added text = ? because what I am using now is using label1 and label2 putting side by side.

enter image description here

Tell me if there's another approach

Ps: I define the color in a database like red or blue.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
299 views
Welcome To Ask or Share your Answers For Others

1 Answer

Your can combine the text content like this:

label3.Text = label1.Text + " = " + label2.Text;

But you will loose the different colours. This is unfortunately not possible. For more details check this answer


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...