如果有意隐藏,请使用关键字new,以下使用new void
private new void KeyDown(TextBox Tbox, KeyEventArgs e) //自定义方法
{
switch (e.KeyCode)
{
case Keys.Escape:
Tbox.Text = string.Empty;
break;
}
}
private new void KeyDown(TextBox Tbox, KeyEventArgs e) //自定义方法
{
switch (e.KeyCode)
{
case Keys.Escape:
Tbox.Text = string.Empty;
break;
}
}