110,539
社区成员
发帖
与我相关
我的任务
分享
public Boolean bolActive = true;
private void formA_Activated(object sender, EventArgs e)
{
if (bolActive)
{
if (string.IsNullOrEmpty(formB.txt1.Text))
{
bolActive = false;
MessageBox.Show("123");
frmB.BringToFront();
}
}
}
public Boolean bolActive = true;
private void formA_Activated(object sender, EventArgs e)
{
if (bolActive)
{
if (string.IsNullOrEmpty(formB.txt1.Text))
{
bolActive = false;
MessageBox.Show("123");
formB.BringToFront();
bolActive = true;
}
}
}
ps:A,B两个窗体都未关闭