Click here to Skip to main content
15,890,845 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I'm working on a note taking application and I can't work out how I insert text from an inbuilt web browser, this is the code I currently have however it comes up with errors:

richtextbox1.text.insert(form1.textbox1.text)


If you could help me it would mean a lot C:
Posted
Comments
ZurdoDev 19-Feb-15 22:52pm    
What is the problem?
Member 11083278 19-Feb-15 23:13pm    
Something to do with string could you possibly give me an idea to insert text from one form textbox to another
ZurdoDev 20-Feb-15 7:36am    
See my solution.

You can set the text of a RichTextBox control by simply doing:
VB
richtextbox1.Text =form1.textbox1.text


Or, you can use the AppendText method:
VB
richtextbox1.AppendText(form1.textbox1.text)


This is the kind of thing you can easily learn on your own if you use the Intellisense in Visual Studio. If you type RichTextBox1 and a dot "." then you get a list of all the properties and methods and should be able to see it pretty easily.

https://msdn.microsoft.com/en-us/library/system.windows.controls.richtextbox(v=vs.110).aspx[^]
 
Share this answer
 

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