[.NET] resources檔案做cursor的兩種方法

作者: reaper8046 (Shepherd)   2014-05-03 23:33:44
請輸入專案類型(網站專案或者應用程式專案):Visual Studio 2012 VB.NET
打擾各位了, 我是vb新手, 如有發言不當, 希望各位海涵...
最近想試著更換鼠標, 用了兩種方法但卻發生一點問題
方法一(直接用*.cur檔)
dim ms as new system.io.memorystream(my.resources.pen)
me.cursor = new cursor(ms)
卻出現以下錯誤訊息(節錄)
System.ArgumentException:
Image format is not valid. The image file may be corrupted.
Parameter name: stream
作者: GoalBased (Artificail Intelligence)   2014-05-04 22:51:00
jacascript = =?
作者: niklee29 (就是愛喝茶)   2014-05-06 14:16:00
作者: reaper8046 (Shepherd)   2014-05-07 18:26:00
似乎還是一樣 但還是謝謝

Links booklink

Contact Us: admin [ a t ] ucptt.com