c# - RichTextBox delete old output, and set new output when clicking a button -


in c# project have read-only richtextbox, textbox input , button. when user types text, output written in richtextbox when push button.

but if type more text, old text still in richtextbox , new text appended.

how can delete old output clicking button , @ once indicate new output?

thank indeed!

-valeria-

string newstring =txtinput.text; richtextbox.text+=newstring; 

Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -