Joey

Joey

  • NA
  • 6
  • 3k

How to sort text boxes ?

Feb 27 2013 1:59 AM
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();

Answers (2)