Home > Net >  Associated input box
Associated input box

Time:09-23

MyData [0]=textBox1. Text; ;//input data
MyData [1]=textBox2. Text;
MyData [2]=textBox3. Text;
Array. Sort (MyData);//order
TextBox1. Text=MyData [0];//output
TextBox2. Text=MyData [1].
TextBox3. Text=MyData [2]; ]

TextBox1 to textBox3 appear error, here are the red wavy line how to return a responsibility?

CodePudding user response:

MyData [0]. ToString ();//the output

CodePudding user response:

To switch to a string

CodePudding user response:

Pay attention to your last line semi-colons many characters,

CodePudding user response:

Do you move the mouse to the red line he will show, you see how he did suggest you, if English is not good can record the baidu translation

CodePudding user response:

error:
 textBox3. Text=MyData [2]. ] 

right
 textBox3. Text=MyData [2]. 
  •  Tags:  
  • C#
  • Related