Windows窗体:SelectionChanged事件的TextBox类窗体、事件、Windows、TextBox

由网友(莫念`)分享简介:我如何得到通知选择改变文本框在.NET 2.0的?我无法找到一个SelectionChanged事件或OnSelectionChanged方法。什么是我们的最佳解决方法(而不必当然要PI​​nvoke的,)?How do I get notified of a selection change in a text b...

我如何得到通知选择改变文本框在.NET 2.0的?我无法找到一个SelectionChanged事件或OnSelectionChanged方法。什么是我们的最佳解决方法(而不必当然要PI​​nvoke的,)?

How do I get notified of a selection change in a text box in .NET 2.0? I was unable to find a SelectionChanged event or an OnSelectionChanged method. What is the best workaround for this (without having to PInvoke, of course)?

推荐答案

您可以使用一个RichTextBox,并设置多行为false。它有一个OnSelectionChanged

You could use a RichTextBox and set Multiline to false. It has a OnSelectionChanged.

阅读全文

相关推荐

最新文章