예제 #1
0
 public bool ActivateControl(System.Windows.Forms.Control active)
 {
     if (this.Controls.Contains(active))
     {
         // Select the control and scroll the control into view if needed.
         active.Select();
         this.ScrollControlIntoView(active);
         this._activeControl = active;
         return(true);
     }
     return(false);
 }