VB6到VB.net移植

时间:2014-12-02 04:35:32

标签: vb.net vb6

我正在将VB6项目移植到VB.net,我收到此错误"'Sorted' is not a member of 'System.Windows.Forms.ListView'"

System.Windows.Forms.SortOrder.Ascending
            .Sort()
            'UPGRADE_ISSUE: MSComctlLib.ListView property lswFloorAll_F.Sorted was not upgraded. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="076C26E5-B7A9-4E77-B69C-B4448DF39E58"'
            .Sorted = False

1 个答案:

答案 0 :(得分:5)

在vb.net中,没有" .sorted"对于列表视图。您可以改为使用.Sorting属性,也可以选择使用ListViewItemSorter属性来指定比较器类。它在vb.net中变得更加混乱。

http://msdn.microsoft.com/en-us/library/system.windows.forms.listview.sorting%28v=vs.110%29.aspx

http://msdn.microsoft.com/en-us/library/system.windows.forms.listview.listviewitemsorter%28v=vs.110%29.aspx