作者testPtt (測試)
看板C_Sharp
標題[問題] winform網頁資源讀取圖片資源
時間Tue Aug 16 22:04:58 2016
我想把網頁包在程式中
用webBrowser元件顯示網頁
不過<img src=不知道怎麼解析圖片資源的路徑
所以無法跑出圖片
有人知道怎麼做嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 61.227.119.223
※ 文章網址: https://webptt.com/m.aspx?n=bbs/C_Sharp/M.1471356300.A.1CB.html
1F:推 shadow0828: <img src="~/Images/Example.png" . 08/16 23:01
2F:→ shadow0828: 上述這個用用看? 寫的是在該資料夾下的Images 08/16 23:01
3F:→ shadow0828: 資料夾內的Example.png檔案,當然副檔只要是圖片就可 08/16 23:02
4F:→ testPtt: 絕對路徑我知道 我要存取程式資源的圖片 08/16 23:09
5F:→ testPtt: 研究一下看來是踩到.net的缺點了 08/17 00:05