Suppose I have a TextBox component and a RichTextBox component on a form.
When I click a button I want the text in the TextBox component to be fed into the RichTextBox component first line. I'm using code as follows :
string str1 = textBox1.Text;
richTextBox1.Lines[0] = str1;
Unfortunately this code does not do the trick !
The text in the RichTextBox remains unchanged.
How can I pull this off ?
Thanks in advance
Steve
When I click a button I want the text in the TextBox component to be fed into the RichTextBox component first line. I'm using code as follows :
string str1 = textBox1.Text;
richTextBox1.Lines[0] = str1;
Unfortunately this code does not do the trick !
The text in the RichTextBox remains unchanged.
How can I pull this off ?
Thanks in advance
Steve