M
Mike Edgewood
If a user clicks into a RichTextBox, how can I get that entire line
where the click occured?
Goal: If *line* is a path\filename, I want to open it in my own
personal display viewer. After pulling hair trying, unsuccessfully, to
get "file:" and DetectURL to do what I want, I decided to write my own.
(file: does not work if the name or path has a space)
So, how can I get the entire *line* the user clicked in a RichTextBox
control. Assume RTB has 100+ lines of RTF text.
where the click occured?
Goal: If *line* is a path\filename, I want to open it in my own
personal display viewer. After pulling hair trying, unsuccessfully, to
get "file:" and DetectURL to do what I want, I decided to write my own.
(file: does not work if the name or path has a space)
So, how can I get the entire *line* the user clicked in a RichTextBox
control. Assume RTB has 100+ lines of RTF text.