Joshdbr
Well-known member
Hi, thanks for reading,
What I have is a user control that has two RichTextBoxes. In the user control, there is RichTextBox1's TextChanged event, I want it to set RichTextBox2's Text to the same as RichTextBox1's Text, I'm currently using:
The user control is on the main form, when I run the application and type I get this error:
StackOverflowExecption was unhandled
An unhandled exception of type 'System.StackOverflowException' occurred in System.Windows.Forms.dll
Thanks in advance!
-Josh
Also, it doesn't make any difference whether it is in a seperate sub or not.
What I have is a user control that has two RichTextBoxes. In the user control, there is RichTextBox1's TextChanged event, I want it to set RichTextBox2's Text to the same as RichTextBox1's Text, I'm currently using:
VB.NET:
RichTextBox2.Text = RichTextBox1.Text
The user control is on the main form, when I run the application and type I get this error:
StackOverflowExecption was unhandled
An unhandled exception of type 'System.StackOverflowException' occurred in System.Windows.Forms.dll
Thanks in advance!
-Josh
Also, it doesn't make any difference whether it is in a seperate sub or not.