110,538
社区成员
发帖
与我相关
我的任务
分享
private void tsHistoryPrice_Click(object sender, EventArgs e)
{
foreach (Form frm in Application.OpenForms)
{
if (frm is frmProductHistoryPrice)
{
//frm.Activate();
EnableWindow(frm.Handle, true);
return;
}
}
frmProductHistoryPrice form2 = new frmProductHistoryPrice();
form2.Show(this);
}
[System.Runtime.InteropServices.DllImport("user32.dll")]
[return: System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.Bool)]
static extern bool EnableWindow(IntPtr hWnd, bool bEnable);
好像没啥反应