Hi all,
im writing a program in C#, but i'm having a couple of problems with a richtextbox i have on my form. Firstly, I want a user to be able highlight a certain part of a line, but at the moment when i do this the whole line gets highlighted. Secondly, when i rightclick inside the richtextbox, no menu gets displayed (i.e. to paste in some text - i dont want to just use ctrl-v). Is there something i can do about this.
Thanks in advance for any help.
Mootroot
Um...in relation to the fact the the user needs to be able to highlight a certain part of a line, that's a standard feature of the RichTextBox object, so if you're not able to do that, then you've likely got other code that's negating this somewhere.
In relation to the context menu add a ContextMenuStrip to your form that contains the item "Paste" and write the code to do what you want when you click Paste in the click event of that menu item. Then assign the context menu to your RichTextBox by selecting it in the ContextMenuStrip property.