发布设置后在图片框中显示图像 [英] Displaying image in picturebox after publish the setup

查看:111
本文介绍了发布设置后在图片框中显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我制作了一个Windows窗体应用程序,其中显示了问题和与问题相关的图像,但在发布问题后显示给我,但未显示图像.我将图像保存在图像文件夹中的bin目录中.分配给我.我该如何解决?

请帮帮我.

Hi All,

I have made a windows form Application in which i displayed Question and images related to Question but after publishing my question is shown to me but image is not displayed.I saved my image in bin directory within image folder .But after publishthis application image is not displyed to me.how can i solve this?

Please help me.

Thanks in Advance.

推荐答案

仅将图像存储在bin的子目录中可能不会将它们包含在已发布的版本中.

图像可以添加为资源:
1.打开项目资源管理器
2.右键单击您的项目,然后选择属性"
左侧带有选项卡的TabControl将打开.
3.选择资源"
将打开一个选项卡.
4.在选项卡的按钮行中,选择图像".
5.添加图像.

您选择作为资源的图像将被编译到程序集中.您可以通过
Just storing your images in a subdirectory of bin may not include them in the published build.

Images can be added as ressources:
1. Open Project Explorer
2. Right-click on your project and chose "Properties"
A TabControl with tabs on the left side opens.
3. Chose "Ressources"
A Tab opens.
4. In the tab''s button row, select "Images".
5. Add images.

The images you select as ressources will get compiled into your assembly. You can use them in your program via
Properties.Ressources.[RessourceName]


这篇关于发布设置后在图片框中显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆