private void SetUnVisible() { if (this.InvokeRequired) { SettheUnvis d = new SettheUnvis(SetUnVisible); this.Invoke(d); } else { this.Visible = false; } }