How to prevent a Windows Forms TextBox from flickering on resize?

前端 未结 4 1819
独厮守ぢ
独厮守ぢ 2020-12-05 19:10

There are plenty of articles addressing flicker in Windows Forms. The majority recommend setting DoubleBuffered = true or setting a bunch of ControlStyle<

4条回答
  •  一生所求
    2020-12-05 19:13

    I usually use a RichTextBox instead of a multiline TextBox. By setting the DetectUrls- and ShortcutsEnabled-properties to false the RTB behaves very similar to a TextBox and ... it's flicker-free.

提交回复
热议问题