换一个试试,还没有遇到这种...

解决方案 »

  1.   

    没有代码不好讲,你创建资源和读取资源都有可能是问题所在。
      

  2.   

    黑色的矩形?
    你使用的是图标还是自己重画的?
      

  3.   

    写资源文件
    ResourceWriter rw=new 
    ResourceWriter("mygis.resources");  
    Cursor ss = new Cursor(@"D:\gis\bin\Debug\cursor\ZoomIn.cur");
                               ......
    rw.AddResource("Photo",ss);//添加光标
    rw.Close();//关闭ResourceWriter。
    读取资源
    System.Reflection.Assembly assembly = 
    System.Reflection.Assembly.GetExecutingAssembly(); ResourceManager rm = new ResourceManager("WindowsApplication6.mygis",assembly); this.Cursor = (System.Windows.Forms.Cursor)(rm.GetObject("Photo"));
    运行成功,执行后显示错误
      

  4.   

    还有我直接从文件创建光标是没问题的.
    上述资源文件我是集成到主程序集中的.