Вопрос по highlight, c# – как выделить элемент в списке?

4

Error: User Rate Limit Exceededwhich both of them are ListView
Error: User Rate Limit ExceededlistLocalError: User Rate Limit ExceededlistView1.
Error: User Rate Limit ExceededlistView1Error: User Rate Limit ExceededlistLocalError: User Rate Limit ExceededFolderError: User Rate Limit Exceededitem.Selected = true.
Error: User Rate Limit ExceededlistLocal.FocusError: User Rate Limit ExceededlistLocal.SelectError: User Rate Limit Exceeded

Error: User Rate Limit Exceededitem.BackColor = Color.RoyalBlue;Error: User Rate Limit Exceeded

   private void listLocal_DragOver(object sender, DragEventArgs e)
   {
      if (!e.Data.GetDataPresent(typeof(ListViewItem))) return;
      Point p = listLocal.PointToClient(MousePosition);
      ListViewItem targetItem = listLocal.GetItemAt(p.X, p.Y);
      if (targetItem != null)               //if dropping on a target item
      {
        targetItem.Selected = true;
        if (targetItem.SubItems.Count > 1) e.Effect = DragDropEffects.None;//if IsFile
        else e.Effect = DragDropEffects.Copy;
        return;
      }
      foreach (ListViewItem item in listLocal.Items) item.Selected = false; //if dragging into current address
      e.Effect = DragDropEffects.Copy;
    }
Error: User Rate Limit Exceeded Murhaf Sousli
Error: User Rate Limit Exceeded Murhaf Sousli
Error: User Rate Limit Exceeded Hans Passant

Ваш Ответ

2   ответа
0

пока эта ссылка может ответить на вопрос. Важно разместить важные части ответа в посте.from Review
4

Похожие вопросы