求高手!vb.net 怎麼引用專案資源檔的圖片?

vb.net 怎麼引用專案資源檔的圖片?

me.cursor = new cursor("D:\\123.png")

改成圖片位置在My.Resources 的圖片

但 me.cursor = new cursor("My.Resources.123") 出現錯誤

該如何改?

abollar wrote:
vb.net 怎麼...(恕刪)

建議你Visual Studio使用英文為主中文為輔的環境來寫程式,小問題去google查很快

https://stackoverflow.com/questions/1190729/vb-net-dynamically-select-image-from-my-resources
文章分享
評分
評分
複製連結

今日熱門文章 網友點擊推薦!