RichTextBox检测beginedit和endedit [英] RichTextBox detect beginedit and endedit

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

问题描述

在C#或VB.NET中,有什么方法可以在不使用keydown和keyup事件的情况下检测何时开始和结束Richtextbox文本编辑?银光? Asp.Net,WPF? Winforms?

实际上,这并不重要,因为答案是否定的.最好的办法就是捕获Focus的get/lost事件,或者类似的事件.


这个问题没有任何意义.当您按下一个带有字母的键盘键时,您已经开始编辑并完成它.换句话说,原则上不存在此类事件.如果有帮助,您可以使用事件GotFocus/LostFocus作为John的指针.

—SA


Is there any way in C# or VB.NET to detect when richtextbox text editing started and finished without using keydown and keyup events?

解决方案

What platform? Silverlight? Asp.Net, WPF? Winforms?

Actually, it doesn''t matter because the answer is no. The best you can do is catch the Focus get/lost events, or something along that line.


The question makes no sense. When you hit a single keyboard key with a letter, you already start editing and finish it. In other words, there are not such events in principle. If it helps you, you could use events GotFocus/LostFocus, as John pointer out.

—SA


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

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