0
集可見= true,那麼消息框,表明它是假的如何更新UI時調用方法失敗
delegate void LoadLastDeptSettingDelegate(String last_dept);
private void LoadLastDeptSetting(String last_dept)
{
//MessageBox.Show("last dept " + last_dept + this.InvokeRequired.ToString());
if (this.InvokeRequired)
{
//this.BeginInvoke(new MethodInvoker(delegate() { LoadLastDeptSetting(last_dept); }));
this.Invoke(new LoadLastDeptSettingDelegate(this.LoadLastDeptSetting), new
object[] { last_dept });
}
else
{
grpPeriod.Visible = true;
MessageBox.Show("before 3 " + this.grpPeriod.Visible.ToString());
非常好,非常感謝 – Lucky 2010-11-29 03:36:18