I want to add image in my rich textBox programatically.
The logic is, when i click a user Image will appear in RTB and below it his details will be shown. I am able to display the details but how to display the image before these data.
The image is in a picturebox control
//Here i want the image code so that it can appear above the following user details.
rtext.Text = "Number - 1"
rtext.AppendText(Environment.NewLine)
rtext.Text = rtext.Text + "Name - John Doe"
You can skip all rtf stuff and work only with images and text. For example, if you want to have image and then some text, you could load that image into clipboard and then paste it into richTextBox: