private void CommandLineControl_Enter(object sender, EventArgs e) // Received focus { QuickSearchPopup = // link to quicksearch control that processes keyboard input QuickSearchPopup.Initialize(CommandLineControl, CommandLineControl.FindForm(), ContentsTreeCtl); QuickSearchPopup.StructurePopupEnabled = false; // no structure popup here QuickSearchPopup.ConsiderShellFocus = false; // need to turn this off }