i have some gif image which i converted to .cursor file and trying o use in my winfrom like that

Cursor c ;
        public Form1()
        {
            InitializeComponent();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            c = new Cursor("cursors\\newcursor.cur");
           panel1.Cursor = c;
        }

but i getting error that cursor file is not ok. image stream is damaged.
i use many converter but got same error.

can none help me out? plz

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.