System.Windows.Forms.Control.OnVisibleChanged C# (CSharp) Method

OnVisibleChanged() private method

private OnVisibleChanged ( EventArgs e ) : void
e System.EventArgs
return void
		protected virtual void OnVisibleChanged(EventArgs e) {
			if (Visible)
				CreateControl ();
				
			EventHandler eh = (EventHandler)(Events [VisibleChangedEvent]);
			if (eh != null)
				eh (this, e);

			// We need to tell our kids (including implicit ones)
			foreach (Control c in Controls.GetAllControls ())
				if (c.Visible)
					c.OnParentVisibleChanged (e);
		}
		#endregion	// OnXXX methods
Control