views:

30

answers:

1

I'm using the ScintillaNet text box control to display some search results and I want to be able to detect when the user double clicks / right clicks on a line in the results so that I can work out which hit they are clicking on.

Does anyone have any ideas on the best way of doing this? I can think of a few ways but they all seem a bit "hacky" to me.

A: 

to get the line number from cursor position, you could use something like this

scintilla1.Lines.FromPosition(scintilla1.CurrentPos).Number
Bala R

related questions