How to change the mouse cursor into a custom one when working with Windows Forms applications?

前端 未结 4 600
栀梦
栀梦 2020-12-28 12:36

In a UserControl I want to change the mouse cursor from the arrow, to a hand icon.
What I currently do is this:

this.Cursor = Cursors.Hand;
         


        
4条回答
  •  伪装坚强ぢ
    2020-12-28 13:07

    Have you tried System.Windows.Forms.Cursor curs = new System.Windows.Forms.Cursor(file_name); ?

提交回复
热议问题