Example #1
0
 public void ResetFocus()
 {
     if (CmbFindWhat.CanFocus)
     {
         CmbFindWhat.Focus();
     }
     else
     {
         ActiveControl = CmbFindWhat;
     }
 }
Example #2
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            LayoutControls();

            FillHistory(CmbFindWhat, FindTextHistory);
            FillHistory(CmbReplaceWith, ReplaceTextHistory);

            CmbFindWhat.SelectAll();
            ResetFocus();
        }