3

I select a Custom .cur file for my program like this:

Assembly asm = Assembly.GetExecutingAssembly();

using (Stream resStream = asm.GetManifestResourceStream("Pie_X.hand.cur"))
{
  HandCursor = new Cursor(resStream);
  resStream.Close();
}
Canvas.Cursor = HandCursor;

I have checked it in the Resource Editor and it is in full color, but in the program it appears all black. How can I fix this so that it appears in color?

tshepang
  • 12,111
  • 21
  • 91
  • 136
ρσݥzση
  • 217
  • 3
  • 13

1 Answers1

0

This is an old question, but for future readers, I think it has been answered here: https://stackoverflow.com/a/4306984/7197632

In particular, the opening paragraph of this answer says:

The Cursor class is rather poorly done. For some mysterious reason it uses a legacy COM interface (IPicture), that interface doesn't support colored and animated cursors.

That would explain why the cursor appears all-black or all-white. I experienced this problem today myself.

person27
  • 65
  • 1
  • 10