开发者

detect selected text

开发者 https://www.devze.com 2023-01-06 20:42 出处:网络
I mdeveloping winform application with C#.Net. alt text http://img688.imageshack.us/img688/566/97354114.jpg

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消