shalbert
Programmer
- Sep 9, 2008
- 3
When someone "right clicks" a richTextBox and a contextMenu is opened up, I would like to dynamicly load the contextMenu based upon what text was located on the line that they right clicked on. For example...
If you have a richTextBox that contains these 3 lines...
Hi there!
How are you?
I'm fine!
.... and you "right click" over the line that says "How are you?", how do I obtain that line so that I can show it in my contextMenu when it opens?
I've been thinking of ways to do this, but non come to mine. Any idea or suggestions would be greatly appreciated.
If you have a richTextBox that contains these 3 lines...
Hi there!
How are you?
I'm fine!
.... and you "right click" over the line that says "How are you?", how do I obtain that line so that I can show it in my contextMenu when it opens?
I've been thinking of ways to do this, but non come to mine. Any idea or suggestions would be greatly appreciated.