System.Windows.Forms.Form.Select C# (CSharp) Method

Select() protected method

protected Select ( bool directed, bool forward ) : void
directed bool
forward bool
return void
		protected override void Select(bool directed, bool forward) {
			Form	parent;


			// MS causes the handle to be created here.
			if (!IsHandleCreated)
				if (!IsHandleCreated)
					CreateHandle ();
			
			if (directed) {
				base.SelectNextControl(null, forward, true, true, true);
			}

			parent = this.ParentForm;
			if (parent != null) {
				parent.ActiveControl = this;
			}

			Activate();
		}

Usage Example

Example #1
0
 public static void volverAPadreYCerrar(Form ventanaPadre, Form ventana)
 {
     ventanaPadre.Visible = true;
     ventanaPadre.Activate();
     ventanaPadre.Select();
     ventana.Close();
 }
All Usage Examples Of System.Windows.Forms.Form::Select
Form