Picturebox在运行时不显示图像分配图像 [英] Picturebox not display image at run time assigning image

查看:83
本文介绍了Picturebox在运行时不显示图像分配图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,
我正在使用图片框显示图像,第一次可以正常运行,但是在某些情况下,我的应用程序进入了另一种模式(我不知道为什么),然后它将不显示图像,
再次重新启动应用程序,一切正常
您能告诉我如何解决此问题吗?

Dear friends,
i am using a picturebox to display image, first time it will work fine but after some event my application gone in another mode( i don''t no why|which) and then it will not display image,
Again restart application it work fine
Can you tell me how can i resolve this problem?

推荐答案

This is a possibility, based on the limited info:

If the image is shown in the picturebox before you run the form in debug mode, then it apparently has been assigned at design time to the PictureBox1.Image property. When you run the program and assign My.Resources.tropical_island3 to the Picture Box image, it clears the image because My.Resources on your home computer does not have resource like the one at class, or maybe rosource name is spelled incorrectly.


这篇关于Picturebox在运行时不显示图像分配图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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