to rainbow() 我试试看,如果行的话我就给分了

解决方案 »

  1.   

    FileSystemWatcher only works on Windows 2000 and Windows NT 4.0. Remote computers must have one of these platforms installed for the component to function properly. However, you cannot watch a remote Windows NT 4.0 computer from a Windows NT 4.0 computer.
    Windows XP能行不?
      

  2.   

    Windows XP是基于nt的,当然可以。
      

  3.   

    可是我如何才能cancel某一个消息的执行?还有windows别的消息该如何截取?
      

  4.   

    Cancel一个操作可以在事件的方法中用System.EventArgs e的属性
    if(...) e.Cancel = true;
      

  5.   

    klxyz(小康)老兄,FileSystemWatcher可不是一个事件,请多点常识好不!!!还没有截取到windows事件!!!
      

  6.   

    用FileSystemWatcher事件处理函数截取事件。
    注销Changed事件:
    this.fileSystemWatcher1.Changed -= new System.IO.FileSystemEventHandler(this.fileSystemWatcher1_Changed);
      

  7.   

    可是该如何解决我取消文件操作事件?比如使用资源管理器删除某个文件,而这个文件在FileSystemWatcher中被认为是不可删除,这样该如何使用FileSystemWatcher取消这个操作?