/// <summary>
 /// Raises the <see cref="E:System.Windows.Forms.Control.GotFocus"/> event.
 /// </summary>
 /// <param name="e">An <see cref="T:System.EventArgs"/> that contains the event data.</param>
 protected override void OnGotFocus(EventArgs e)
 {
     base.OnGotFocus(e);
     if (selectedPage != null)
     {
         selectedPage.Focus();
     }
 }
Exemple #2
0
 /// <summary>
 /// Raises the <see cref="E:System.Windows.Forms.Control.GotFocus"/> event.
 /// </summary>
 /// <param name="e">An <see cref="T:System.EventArgs"/> that contains the event data.</param>
 protected override void OnGotFocus(EventArgs e)
 {
     base.OnGotFocus(e);
     selectedPage?.Focus();
 }