From 22b8c41584163eeae6340205920444eb876ab354 Mon Sep 17 00:00:00 2001 From: Sunny Date: Wed, 2 Nov 2022 16:52:39 +0800 Subject: [PATCH] =?UTF-8?q?*=20UIIPTextBox:=20=E5=A2=9E=E5=8A=A0TextChange?= =?UTF-8?q?d=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SunnyUI/Controls/UIIPTextBox.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/SunnyUI/Controls/UIIPTextBox.cs b/SunnyUI/Controls/UIIPTextBox.cs index f8e8ee81..7906f2c9 100644 --- a/SunnyUI/Controls/UIIPTextBox.cs +++ b/SunnyUI/Controls/UIIPTextBox.cs @@ -17,6 +17,7 @@ * 创建日期: 2022-01-29 * * 2022-01-29: V3.1.0 增加文件说明 + * 2022-11-02: V3.2.6 增加TextChanged事件 ******************************************************************************/ using System; @@ -50,9 +51,17 @@ namespace Sunny.UI txt.KeyPress += Txt_KeyPress; txt.TextChanged += Txt_TextChanged; txt.Leave += Txt_Leave; + txt.TextChanged += Txt_TextChanged1; } } + private void Txt_TextChanged1(object sender, EventArgs e) + { + TextChanged?.Invoke(this, e); + } + + public new event EventHandler TextChanged; + private void Txt_Leave(object sender, EventArgs e) { TextBox t = (TextBox)sender;