RichTextBox最后更改检查 [英] RichTextBox last change check

查看:200
本文介绍了RichTextBox最后更改检查的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何知道用户在RichTextBox中的文本中所做的最后更改? 有功能吗? 还是我需要为其构建功能?

How can i know the last change that the user did in the text in RichTextBox? Is there a function? Or I need to build to it a function?

推荐答案

将事件添加到文本框.选择您的文本框,转到属性,在事件选项卡中,您将看到不同的事件.查找TextChanged事件.将该事件添加到您的代码中.

Add an event to your textbox. Select your textbox, go to properties, in event tab you will see different events. Find TextChanged event. Add that event to your code.

此功能将在每次更改文本框时触发.您可以在该函数中编写逻辑.

This function will trigger everytime textbox is changed. You can write your logic in that function.

这篇关于RichTextBox最后更改检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆