SetFocusToChildApplication() приватный Метод

Reset the focus to the child application window
private SetFocusToChildApplication ( string caller ) : void
caller string
Результат void
Пример #1
0
 public void FocusCurrentTab()
 {
     dockPanel1.Refresh();
     if (dockPanel1.ActiveDocument is ctlPuttyPanel)
     {
         ctlPuttyPanel p = (ctlPuttyPanel)dockPanel1.ActiveDocument;
         SetPanelTitle(p);
         p.SetFocusToChildApplication();
     }
 }
Пример #2
0
        /// <summary>
        /// Handles focusing on tabs/windows which host PuTTY
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void dockPanel1_ActiveDocumentChanged(object sender, EventArgs e)
        {
            if (dockPanel1.ActiveDocument is ctlPuttyPanel)
            {
                ctlPuttyPanel p = (ctlPuttyPanel)dockPanel1.ActiveDocument;

                this.Text = p.ApplicationTitle.Replace(" - PuTTY", "") + " - SuperPutty";
                p.Text    = p.ApplicationTitle.Replace(" - PuTTY", "");
                p.SetFocusToChildApplication();
            }
        }