看了一段代码:
' Button
Dim controlDefs As ControlDefinitions = m_inventorApplication.CommandManager.ControlDefinitions
Dim picture As IPictureDisp
picture = Microsoft.VisualBasic.Compatibility.VB6.ImageToIPictureDisp(My.Resources.BweSetup)
就是指定项目资源目录里的BweSetup.bmp文件。编译没问题。