Home > Net >  Have anyone who can explain it in detail this code is the meaning of each sentence
Have anyone who can explain it in detail this code is the meaning of each sentence

Time:09-18

The delegate void SetTextCallback (string text);

Private void AppendTextBox (string text)
{
Try
{
If (Receive_TextBox. InvokeRequired)
{
SetTextCallback d=new SetTextCallback (AppendTextBox);
Enclosing the Invoke (d, text);
}
The else
{
Receive_TextBox. SuspendLayout ();
If (text. The Length==1 && text [0]==0 x08) (char)
{
If (Receive_TextBox. Text. Length> 0)
{
Receive_TextBox. SelectionStart=Receive_TextBox. Text. Length - 1;
Receive_TextBox. SelectionLength=1;
Receive_TextBox. SelectedText="";
}
}
The else
{
Receive_TextBox. AppendText (text);
}
If (Receive_TextBox. Text. Length> 100000)
{
Receive_TextBox. Text=Receive_TextBox. Text. The Substring (50000, Receive_TextBox. Text. Length - 50000);
}
Receive_TextBox. ResumeLayout (false);
}
}
Catch {}
}
  •  Tags:  
  • C#
  • Related