detect selected text
I m developing winform application with C#.Net.
alt text http://img688.imageshack.us/img688/566/97354114.jpg
How can re开发者_运维百科ach selected text with mouse? Text area is Label Control.
Your question is not very clear, but assuming that the text area is a RichTextBox control, just use the SelectedText property. You can use the SelectionStart and SelectionLength properties as well if needed.
精彩评论