C# RichTextBox selection problem

后端 未结 2 486
花落未央
花落未央 2020-11-30 14:55

I have a RichTextBox control on an application and here\'s my problem: when the application runs, if I start selecting with the mouse some of the characters inside a word an

2条回答
  •  无人及你
    2020-11-30 15:33

    Maybe things have changed since this question was answered, but I have an even simpler solution:

    Just add richTextBox1.AutoWordSelection = false; to the code.

    Sounds crazy, but setting this to false in the properties-box does not work. You have to do it in the code, even if the property is already false. Then it works!

提交回复
热议问题