Click here to Skip to main content
15,918,617 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello everyone can anyone pz help me

I want that whenever I will click on a button
it will clear all the text etc in rich textbox
Posted

1 solution

Is simple
VB
RichTextBox1.Clear()

isn't enough??
 
Share this answer
 
Comments
HARDEEP_SAINI 8-Mar-14 14:10pm    
yes thanks alot
can you plz help a little more
how to copy a richtextbox by pressing a button so that its content can be pasted any where in windows
Marcin Kozub 8-Mar-14 14:21pm    
RichTextBox1.Copy()
It copies all selected text from RichBoxText control to clipboard.
To select entire text in RTB you should use: RichTextBox1.SelectAll()
It's very easy, try to discover other methods of RichTextBox by your self. Visual Studio has very powerful IntelliSense mechanizm.
Maciej Los 8-Mar-14 17:20pm    
+5
Marcin Kozub 9-Mar-14 13:48pm    
thx Maćku :)
Maciej Los 9-Mar-14 13:56pm    
You're very welcome, Marcinie ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900