Quantcast
Channel: CSharp Forum Latest Questions
Viewing all articles
Browse latest Browse all 32062

How to sort text boxes ?

$
0
0
Hi just wondering if somebody could help me.

I have a button that will generate two numbers inside three different text boxes.

I was wondering how I can sort these text boxes so the first number will always be smaller etc..

Thank you

 Random RandomClass = new Random();
        int Num1 = RandomClass.Next(0, 50);
        int Num2 = RandomClass.Next(0, 50);
 int Num3 = RandomClass.Next(0, 50);



        tb1.Text = Num1.ToString(); 
        tb2.Text = Num2.ToString();
 tb3.Text = Num3.ToString();

Viewing all articles
Browse latest Browse all 32062

Trending Articles