* UIIPTextBox: 增加TextChanged事件

This commit is contained in:
Sunny 2022-11-02 16:52:39 +08:00
parent d8d3eeac53
commit 22b8c41584

View File

@ -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;