Object c“this.sightCursor=new Cursor(GetType(),”Sight.Cur“)为对象引用未设置为对象的实例 namespace Sample { public partial class Catcher: UserCont

Object c“this.sightCursor=new Cursor(GetType(),”Sight.Cur“)为对象引用未设置为对象的实例 namespace Sample { public partial class Catcher: UserCont,object,reference,cursor,Object,Reference,Cursor,c“this.sightCursor=new Cursor(GetType(),”Sight.Cur“)为对象引用未设置为对象的实例 namespace Sample { public partial class Catcher: UserControl { Cursor sightCursor; bool running = false; CWindow parent; CWindow curWin = 0; Highlighter highli

c“this.sightCursor=new Cursor(GetType(),”Sight.Cur“)为对象引用未设置为对象的实例
namespace Sample {
    public partial class Catcher: UserControl {
    Cursor sightCursor;
    bool running = false;
    CWindow parent;
    CWindow curWin = 0;
    Highlighter highlighter;
    public Catcher() {
        InitializeComponent(); * * this.sightCursor = new Cursor(GetType(), "Sight.Cur"); * *
        this.LostFocus += new EventHandler(Catcher_LostFocus);

        if (highlighter == null)
        highlighter = new Highlighter();
        ((CWindow) highlighter.Handle).Transparent = true;
    }


    * * this.sightCursor = new Cursor(GetType(), "Sight.Cur"); * * this is where i get error of Object reference not set to an instance of an object!

    Sight.Cur is available at my recources also!

    Looking forward of your helps..Thanks