private void FormAyudaDataSet_VisibleChanged(object sender, System.EventArgs e) { if (this.Visible) { TimerOcultar.Start(); } }
public void Ocultar() { // Permito procesar un clic System.Windows.Forms.Application.DoEvents(); System.Threading.Thread.Sleep(1); TimerOcultar.Stop(); this.Visible = false; this.Size = new Size(0, 0); this.Location = new Point(30000, 30000); this.ShowInTaskbar = false; }