private void ntxt_menuname_Leave(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(ntxt_menuname.Text))
{
MessageBox.Show("请输入菜单号");
return;
}
}
private void textBox1_Leave(object sender, EventArgs e)
{
MessageBox.Show("somthing");
(sender as TextBox).Focus();
}