I’m making a small text editor as part of a larger application. So I’ve taken an RichTextBox and added an tool strip with some buttons. Actually everything works well with the editing part. My app requires the addition of a DateTime stamp in the textbox every time a button is clicked. When I do so, the entire markup is gone.
So what I do is:
private void button_click(object sender, EventArgs e)
{
richtextbox1.text += DateTime.Now.toString();
}
Manual: