How can I use custom cursor C#?

天涯浪子 提交于 2020-03-01 04:37:25

问题


well i wanna ask you first how can I add a custom cursor to my c# application where i have the (.cur) file?

second i want to add two custom cursors which are open hand and closed hand (like the ones used in the adobe acrobat reader or the ones used in windows photo viewr) because i have a drag n drop functionality.

So please where can i find the .cur files to those curosrs, i have searched the whole web but i got nothing. i have found one on a forum said that i can find the open hand cursor in one of the resources inside an assembly in the Microsoft expression blend. I have the .Net reflector and i extracted the .cur file from that assembly .. but i didn't find a closed hand cursor!!!

so please can you help me in that

Thanks


回答1:


Silverlight does not support true custom cursors. The best you can do is move an image about the display as the mouse moves.




回答2:


To set a cursor from an embedded resource file, see the MSDN example in the documentation. This can be a .cur file.

I cannot help with the two .cur files though.



来源:https://stackoverflow.com/questions/7273325/how-can-i-use-custom-cursor-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!