zoukankan      html  css  js  c++  java
  • .Net 2.0ListView控件在Windows 2000和Windows XP上的差异

    .Net 2.0为提供的ListView控件和1.1提供了分组和平铺视图两个新功能。这些功能需要在Windows XP或者Windows 2003上面才能表现出来。

    效果图如下:

    再Windows2000下面除了显示效果和以前一样以外,今天还发现下面这个问题。ListViewGroup.Count属性不会随ListView.Items.Clear()方法影响。

    ListView listView = new ListView();
    ListViewGroup localGroup 
    = new ListViewGroup("本地用户");
    listView.Groups.Add(localGroup);

    ListViewItem item 
    = new ListViewItem("张山", localGroup);

    // 此时 localGroup.Items.Count 等于 1

    listView.Items.Clear();

    // 此时在Windows XP、Windows 2003环境下
    // localGroup.Items.Count 等于 0
    //
    // 而在Windows 2000 环境下
    // localGroup.Items.Count 仍然等于1。
  • 相关阅读:
    super与this的区别?
    springboot(4)-thymeleaf
    springboot(3)-自定义josn
    springboot(2)-Http协议接口开发
    springboot(1)-HelloWorld
    SpringSecurityOauth2.0
    Docker 应用部署
    RabbitMQ02
    RabbitMQ01
    011通用寄存器
  • 原文地址:https://www.cnblogs.com/fuyun/p/389074.html
Copyright © 2011-2022 走看看