当焦点移到另一个控件时,如何保持RichTextBox选择? [英] How to maintain richtextbox selection when focus is moved to another control?
本文介绍了当焦点移到另一个控件时,如何保持RichTextBox选择?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当鼠标单击其他控件时,例如在列表框中更改字体或在树视图控件上单击时,我无法在RTF文本框中突出显示选定的文本.文本仍处于选中状态,但文本未突出显示.如何保持突出显示的文本选择?
有人可以帮忙吗?
问候,
WingOnn
Hi,
I have problem in keeping the selected text highlighted in a richtextbox when the mouse clicked to other control, eg changing font from a list box or clicking on a treeview control. The text is still selected but the the text not highlighted. How can I maintain the text selection highlighted?
Can someone help?
Regards,
WingOnn
推荐答案
在文本框中设置"HideSelection"属性为错误的.
Set the "HideSelection" property on the text box to false.
这篇关于当焦点移到另一个控件时,如何保持RichTextBox选择?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文