Пример #1
0
 private void LBMouseUp(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Right)
     {
         int i = LB.IndexFromPoint(e.X, e.Y);
         if (i == ListBox.NoMatches)
         {
             return;
         }
         LB.SelectedIndex = i;
     }
 }