I'm making a Winform based FTP program in Visual Studio.
In this project I want to select listviewitem that, at under my cursor (hovered) during dragging another item.
I tried to figure out this problem but it doesn't work.
My crudential solution is below process:
make boolean variable and initialize false < /li>
Когда событие Dodrag начинается установить переменную true < /li>
Затем оператор в MouseMove Event DistView Выберите элемент < /li>
< /ol>
if (LocalDragEnter)
{
ListViewItem hoverItem = Local_Listview.GetItemAt(e.X, e.Y);
if (!(hoverItem == null))
{
hoverItem.Selected = true;
}
}
< /code>
Но это не работает в одно и то же время,
select item завершается, когда происходит Dragevent. < /p>
Как я могу это достичь? < /p>
Подробнее здесь: https://stackoverflow.com/questions/716 ... ing-dodrag