none
Como selecionar um item da ListBox com o botão direito (WinForms) RRS feed

Respostas

  • Consegui com esse código. Obrigado
     int index = fileListBox.IndexFromPoint(e.X, e.Y);
          if (index >= 0 && index < fileListBox.Items.Count)
          {
            fileListBox.SelectedIndex = index ;
          }
          fileListBox.Refresh();


    Desenvolva!!!
    sexta-feira, 15 de outubro de 2010 12:16