Adding text to richtextbox and textbox value?

simpleonline12

New member
Sep 29, 2009
191
3
0
I have a richtextbox and I am adding text to the rich text box programmically using:

Code:
RichTextBox1.AppendText(Environment.NewLine & "The red fox jumps over the"[CODE]

I have a variable called "myvariable"

How can I program my button to type the text above and then insert variable's value in one line?

Example:
Let's that myvariable = "moon"

How can I code my button to say 
"The red fox jumps over the moon"

Thanks
 


I have a richtextbox and I am adding text to the rich text box programmically using:

Code:
RichTextBox1.AppendText(Environment.NewLine & "The red fox jumps over the"

I have a variable called "myvariable"

How can I program my button to type the text above and then insert variable's value in one line?

Example:
Let's that myvariable = "moon"

How can I code my button to say
"The red fox jumps over the moon"

Thanks
 
Is this VB? Sure looks like it.

Firstly, scrap VB, it's a pile of shit.

Secondly, I think you want:

Code:
RichTextBox1.AppendText(Environment.NewLine & "The red fox jumps over the" & myvariable)