我在此button的click里写下
this.Parent.image1.Picture= 'c:\myimage\MYBTN.GIF '
编译后放在其它的机上不出来图.这个路径应该写什么
------解决方案--------------------------------------------------------
this.Parent.image1.Picture= ' " ' + 'c:\myimage\MYBTN.GIF ' + ' " '
这样看看行不行。
要不就是你把控件的属性给弄错了。
好好检查检查。
------解决方案--------------------------------------------------------
呵呵.
你在编译的时候可以把这个图片包含进去.
this.Parent.image1.Picture= '.\MYBTN.GIF '
这样就可以了.