Windows Forms: SelectionChanged event for TextBox class

后端 未结 3 1563
鱼传尺愫
鱼传尺愫 2020-12-10 15:01

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 workar

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-10 15:24

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

提交回复
热议问题