本文介绍了图像在运行时不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的朋友,
我在各种按钮和标签控件上使用了几个图像.我是从项目属性窗口的添加资源"窗口导入它们的.
在设计时一切都很好.但是在运行时,这些控件上没有显示图像.我从属性窗口尝试过.然后还通过使用"My.Resources.ImageName"在运行时进行尝试.但一切都在脉搏.
我没有更改该应用程序目录.
我该如何解决这个问题?
谢谢您的期待.
问候
SKPaul
Dear Friends,
I have used couple of images on various button and label controls. I imported them by "Add Resources" window from project properties window.
Everything is quite well at design time. But at runtime, no image is shown on those controls. I tried it from properties window. Then also tried from runtime by using "My.Resources.ImageName". But all are in vein.
I did not change that application directory.
How can i solve this problem?
Thanking you in anticipation.
Regards
SKPaul
推荐答案
这篇关于图像在运行时不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!