When writing a custom control for listview: I override this method as follows:
protected override void OnDragDrop(DragEventArgs drgevent) { base.OnDragDrop(drgevent);
Sometimes hoverItem becomes null :( It becomes null when I delete an item in the far right corner of the list. If I drop it somewhere in the list, there are elements and text there, it works fine if I drop it somewhere on items no text, then it will become null .... 
I attach the image for clarity
What is the problem? or do you think there are better ways to do this?
c # winforms
Bohn
source share