dotnet / dotnet/dotnet-api-docs
Cursor class now *does* (partly) support 24-bit color cursors, despite "Note" to the contrary.
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
re Note "The Cursor class does not support animated cursors (.ani files) or cursors with colors other than black and white.".
Using code in this answer, https://stackoverflow.com/a/6897405/199364, it is possible to load&display 32-bit color cursors from a file, via "IntPtr LoadCursorFromFile(String str)" in "User32.dll".
(However the Cursor class only *partly* supports color cursors. Specifically, reading from a *memory stream* doesn't support anything but black & white.)
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: 60694aa7-c53a-9016-e599-9f8dfd0939a1
* Version Independent ID: 7134fec4-cf7a-b534-0d01-8fb91ce4aba0
* Content: [Cursor Class (System.Windows.Forms)](https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.cursor?redirectedfrom=MSDN&view=netframework-4.7.2#feedback)
* Content Source: [xml/System.Windows.Forms/Cursor.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Windows.Forms/Cursor.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**
Contributor guide
Assessment
This issue has not been assessed yet.