ListView的使用[4]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 flower_777 的 blog

    colstr.add(filename);//把打开的方件夹的路径记录下来,
                                     这里是因为我们现在的路径是已知的,不用记录。

   }
   else//如果是文件,就执行它
   {
    system.diagnostics.process.start(filename);
   }
  }

下面,再添加back按钮的click事件处理程序,实现后退功能

  private void btnback_click(object sender, system.eventargs e)
  {
   if(colstr.count>1)
   {
    createitem(colstr[colstr.count-2]);
    colstr.removeat(colstr.count-1);
    createheader();
   }
   else if(colstr.count==1)
   {
    createitem(@"c:\");
    createheader();
    colstr.clear();
   }
  }

好了,现在所有的功能都实现了。









本文关键:ListView的使用
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top