Inquiridor
Erro na conversão de variável string para int

Pergunta
-
Olá galera é o seguinte, eu preciso converter uma variável que estou recebendo via porta serial, no entanto esta acontecendo um erro quando tento colocar essa variável em uma textbox, gostaria da ajuda de vcs... o códio que estou usando é o seguinte.
...
private void DisplayText(object sender, EventArgs e) { textBox1.AppendText(RxString); } private void serialPort1_DataReceived(object sender, System.IO.Ports.SerialDataReceivedEventArgs e) { RxString = serialPort1.ReadExisting(); this.Invoke(new EventHandler(DisplayText)); this.Invoke(new EventHandler(ProcessarRX)); } private void ProcessarRX(object s, EventArgs e) { X = Int32.Parse(RxString.ToString()); if (X > 10) ; { textBox2.Text = "teste"; }; }
o erro que esta acontecendo é esse