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();
How to sort text boxes ?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

R ACHUTHA181 reputationPosted Feb 27, 2013, 4:57 AM EST
Random RandomClass = new Random();
tb1.Text = Nums[0].ToString();
tb2.Text = Nums[1].ToString();
tb3.Text = Nums[2].ToString();
Joey6 reputationPosted Feb 27, 2013, 5:31 AM EST