public Completion() { InitializeComponent(); _completionListBox.KeyDown += (se, e) => { if (e.KeyData == (Keys.N | Keys.Control)) { ListBoxUtil.SelectNextItem(_completionListBox); e.SuppressKeyPress = true; } else if (e.KeyData == (Keys.P | Keys.Control)) { ListBoxUtil.SelectPreviousItem(_completionListBox); e.SuppressKeyPress = true; } }; }
public void SelectPreviousItem() { ListBoxUtil.SelectPreviousItem(_memoListBox); }