我昨天折腾了图片控件,还是半成品。 估计是系统的bug 。图片会显示,但是不完美。
今天,我使用了图片浏览器控件,就是pictureviewer1 。 我使用了代码去除最下面的 增加,删除 ,打开,重连等按钮。
代码如下:
Dim pv As WinForm.PictureViewer = e.Form.Controls("PictureViewer1")
pv.DeleteCommand.Visible = False
pv.openCommand.Visible = False
pv.Addcommand.visible = False
pv.fullviewcommand.visible = False
pv.managercommand.visible = False
pv.stretchcommand.visible = False
pv.updatecommand.visible = False
pv.saveascommand.visible = False
pv.deletecommand.visible = False
pv.clearcommand.visible = False
pv.connectcommand.visible = False
我现在想,这么多代码,能否简单一点啊。 这个也太长了。
[此贴子已经被作者于2015/6/30 8:27:55编辑过]