private void listBoxRecent_MouseDoubleClick(object sender, MouseEventArgs e) { int index = this.listBoxRecent.IndexFromPoint(e.Location); if (index != System.Windows.Forms.ListBox.NoMatches) { this.addCommand(3, index); } }