Mehmet
Mehmet

Reputation: 2278

detect selected text

I m developing winform application with C#.Net.

alt text http://img688.imageshack.us/img688/566/97354114.jpg

How can reach selected text with mouse? Text area is Label Control.

Upvotes: 0

Views: 276

Answers (1)

Ed Swangren
Ed Swangren

Reputation: 124642

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.

Upvotes: 2

Related Questions