public void WdVisible(bool flg) { if (this.InvokeRequired) { WdVisibleCallback d = new WdVisibleCallback(WdVisible); this.Invoke(d, new object[] { flg }); } else { this.Visible = flg; } }
public void WdVisible(bool flg) // Since Visible exists, it was referred to as WdVisible. { if (this.InvokeRequired) { WdVisibleCallback d = new WdVisibleCallback(WdVisible); this.Invoke(d, new object[] { flg }); } else { this.Visible = flg; } }
public void WdVisible(bool flg) { System.Windows.Forms.ToolStrip toolStrip = this.GetCurrentParent(); if (toolStrip.InvokeRequired) { WdVisibleCallback d = new WdVisibleCallback(WdVisible); toolStrip.Invoke(d, new object[] { flg }); } else { this.Visible = flg; } }