开发者

how to add a resource to assembly during runtime?

how i can insert a file to assembly at run-time? i want to capable the user to import his l开发者_如何转开发ogo into my application. Who has a better idea?


If you assembly is loaded, i.e. at runtime, it's probably locked by the process, so you can't insert data into it.

You can generate a new assembly with the logo and load it when it's been generated.


You can't modify an assembly programmatically (at least not easily), and especially not at runtime. The user logo should be in another file, perhaps an image file in the user profile directory (AppData)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜