C# Winforms - change cursor icon of mouse

后端 未结 2 1266
借酒劲吻你
借酒劲吻你 2020-12-18 18:04

How to change cursor icon to the \'busy icon\' usually shown on the desktop? How can i set Animated files (.gif,.ani) instead of cursor ?

2条回答
  •  情书的邮戳
    2020-12-18 18:41

    I have the answer for a picturebox

    Picturebox1.cursor = new cursor(Properties.Resources.CURSOR NAME.GetHicon());
    

提交回复
热议问题