RichTextBox TextChange事件无法调用。 [英] RichTextBox TextChange Event not call.
本文介绍了RichTextBox TextChange事件无法调用。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我从旧表单中删除RichTextBox并将RichTextBox对象添加到新表单时。
When I remove a RichTextBox from old Form and add the RichTextBox Object to a new Form.
RichTextBox TextChange事件未调用
The RichTextBox TextChange Event not call
推荐答案
嗨朋友,
原因是当您将控件移除到新表单时无法触发,即使您已将事件添加到旧表单中。
Of cause it can not fire when you remove the control to a new form, even if you have already added event to the old form.
您必须重新创建TextChanged事件richTextBox:
You have to recreate the TextChanged event for the richTextBox:
1,双击richTextBox。
1, Double click the richTextBox.
2,或者单击属性框中的事件:
2, Or click the event in the property box:
问候,
Stanly
这篇关于RichTextBox TextChange事件无法调用。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文