Can somone tell me why richtextbox text is not changing?
Code:
public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { Thread t = new Thread(rtb2); t.Start(); } private void rtb2() { try { richTextBox1.Text = "1"; } catch(InvalidOperationException ex) { MessageBox.Show("HI"); } } }
Comment