Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

[WinForms] Concatenation of a Label and a Variable

$
0
0
Good afternoon,
I have a question, is it possible to Concatenate a variable to a label?

For example, i'm doing:
Random Rnd = new Random();
      int num1 = Rnd.Next(1, 11);

And now i want to concatenate the random number to give test me if the label of that number has a char inside.
if ( lbl_s_num1.Text != "X")

Is this possible?

Viewing all articles
Browse latest Browse all 51036

Trending Articles