- Add cursor files (*.cur) to resources
- In [Properties] -> [Resources] tab, click [Add Resource] -> [Add Existing File...]
- Choose your custom cursors and click OK.
- Load cursor with following code:
this.Cursor = new Cursor(new System.IO.MemoryStream(Properties.Resources.MyCursor));, where Mycursor refers to your cursor name.
沒有留言:
張貼留言