请问VB中如何在commandbutton控件加上图片?

解决方案 »

  1.   

    commandbutton1.picture="pathfile"
    ^~^
      

  2.   

    首先要把commandbutton的style属性设置为1
    然后再设置它的picture就行了,例:
    with command1
     .style=1
     .picture="c:\a.bmp"
    end with
      

  3.   

    记得以前自学VB时这个问题也困扰过我。。总是想,已经把PICTURE属性(还有BACKCOLOR等属性)设置过了呀,怎么还是没有反应呢?。。那时没钱买书呀,又上不了网,这个问题也搞了很久。。
      

  4.   

    将按钮控件的 Style 属性设置为 Graphics,然后在 Picture 属性中选择一个图片文件。