SIL.FieldWorks.Common.Framework.DetailControls.Slice.Slice.OnGotFocus C# (CSharp) Méthode

OnGotFocus() protected méthode

Focus the main child control, if possible.
protected OnGotFocus ( EventArgs e ) : void
e EventArgs
Résultat void
		protected override void OnGotFocus(EventArgs e)
		{
			CheckDisposed();
			if (Disposing)
				return;
			DataTree.MakeSliceVisible(this); // otherwise no change our control can take focus.
			base.OnGotFocus(e);
			if (Control != null && Control.CanFocus)
				Control.Focus();
		}