Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用富文本框并希望获取用户将用鼠标突出显示的文本。VB.net 中是否有执行此操作的事件处理程序?
它是 RichTextBox.SelectionChanged 事件。
你可以这样使用它:
Private Sub r1_SelectionChanged(sender As System.Object, e As System.EventArgs) Handles r1.SelectionChanged Me.Text = r1.SelectedText End Sub