add text to a richtextbox c# code example Example: c# write into richtextbox rtdisplay.AppendText("Name and student number:" + name);