Get Selected Text

Topics: Developer Forum, User Forum
Feb 7, 2013 at 4:34 AM
I'm trying to determine how to set a contextmenu based off of selected text. I had tried the following...

if(scintilla.selection.text == "foo"){
 MessageBox.Show("whoo hoo");
}

but it's not firing any type of event. I had also attempted to use the TextChanged event but nothing is happening either.
Feb 7, 2013 at 6:55 PM
Have you tried the SelectionChanged event?
Feb 12, 2013 at 12:26 AM
ahouse101 wrote:
Have you tried the SelectionChanged event?
This worked really well, thanks!