Skip to content

Commit

Permalink
数字键盘 按下确定收起键盘
Browse files Browse the repository at this point in the history
  • Loading branch information
kwwwvagaa committed Aug 31, 2020
1 parent 641fdbc commit 2bbb01e
Show file tree
Hide file tree
Showing 5 changed files with 1,107 additions and 1,034 deletions.
8 changes: 6 additions & 2 deletions HZH_Controls/HZH_Controls/Controls/Text/UCTextBoxEx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public bool IsShowKeyboard
btnKeybord.Visible = value;
}
}

[Description("获取或设置一个字符,该值指示文本框中的密码。")]
public char PasswordChar
{
Expand All @@ -119,7 +119,7 @@ public char PasswordChar
{
txtInput.PasswordChar = value;
}
}
}
/// <summary>
/// 获取或设置控件显示的文字的字体。
/// </summary>
Expand Down Expand Up @@ -509,6 +509,10 @@ private void btnKeybord_MouseDown(object sender, MouseEventArgs e)
{
UCKeyBorderNum key = new UCKeyBorderNum();
m_frmAnchor = new Forms.FrmAnchor(this, key);
key.EnterClick += (a, b) =>
{
m_frmAnchor.Hide();
};
m_frmAnchor.VisibleChanged += (a, b) =>
{
if (m_frmAnchor.Visible)
Expand Down
Loading

0 comments on commit 2bbb01e

Please sign in to comment.