最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

c# - windows listview virtual mode, Is there a bug when pressing shift to select multiple items? - Stack Overflow

programmeradmin0浏览0评论

windows listview virtual mode, Is there a bug when pressing shift to select multiple items ?

c# my code:

    private void Form1_Load(object sender, EventArgs e)
    {
        listView2.VirtualMode = true;
        listView2.VirtualListSize = 100;
    }

    private void listView2_RetrieveVirtualItem(object sender, RetrieveVirtualItemEventArgs e)
    {
        if (e.Item == null)
            e.Item = new ListViewItem(e.ItemIndex.ToString()); 

    }

I tried it in Delphi and it was the same.

There is no such problem when not using virtual mode.

I expect that the red-framed options in git should not be selected

It is icon mode. No icon is added to imagelist.

Is it that I don't know how to use it, or is there a bug in Windows?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论