首先肯定一点的是picturebox控件是不能放在mdi窗体上的(和vb盗版无关)。如果一定要放,只能放置在mdi子窗体上。 private sub mdiform_resize() if me.窗口状态<>最小化 then 图片窗口.move 0,0,me.scalewidth,me.scaleheight endif end sub
private sub mdiform_resize() if me.窗口状态<>最小化 then 图片窗口.move 0,0,me.scalewidth,max(me.scaleheight,0) '因为me.scaleheight有可能小于零。 endif end sub
private sub mdiform_resize()
if me.窗口状态<>最小化 then
图片窗口.move 0,0,me.scalewidth,me.scaleheight
endif
end sub
if me.窗口状态<>最小化 then
图片窗口.move 0,0,me.scalewidth,max(me.scaleheight,0) '因为me.scaleheight有可能小于零。
endif
end sub
而label 不可以放在mdi窗体上