how do you copy text from a rich text box w/ a button
and how do you paste text into another rich text box w/ a button
Printable View
how do you copy text from a rich text box w/ a button
and how do you paste text into another rich text box w/ a button
Call its Copy method.Quote:
how do you copy text from a rich text box w/ a button
Call its Paste method.Quote:
how do you paste text into another rich text box w/ a button
how do i go about doing that?
The help topic for all three methods provides a code example, which is why you should always read the documentation.
?
if the code is simple can you please type it if not can you provide a link?
There is no need for me to repeat code that is already provided in the help. This is a good chance for you to learn how to use the MSDN library if you don't already. Given that it's just a Web site though, you don't need to be an experienced developer to use it. You should also have installed the MSDN library locally if you installed VS yourself.
Open your local MSDN library if you have it, otherwise go to the MSDN Web site. Search for richtextbox and follow the link to the topic for the System.Windows.forms.RichTextBox class. Follow the link to the topic for its member listing, then follow the link to the topic for the Cut, Copy or Paste method.
It's just a search and a few links, just like anything on the Web. Now you have your code example and you know how to look for information on MSDN in future. That doesn't guarantee you'll find what you're looking for but the more you do it the better you'll get and the more successful you'll be. That's more help to you as a developer in the long run.
lol reminds me of my parents but found it thanks
I subscribe very passionately to the "teach a man to fish" ethos. :thumb:Quote:
Originally Posted by fred666777