cancel
Showing results for 
Search instead for 
Did you mean: 

Why do images not show up for buttons?

Former Member
0 Kudos

Netters,

Here is my simple code:


oItem.Top = top;
oItem.Left = left;
oItem.Width = wd;
oItem.Height = ht;
SAPbouiCOM.Button oButton = ((SAPbouiCOM.Button)(oItem.Specific));
string sPath = System.Windows.Forms.Application.StartupPath;
string fullPath = sPath + "\MyImage.bmp";
oButton.Image = fullPath;

I have verified that the image exists at the specified location. However, it is still not being shown in the UI. The button does show up though.

Is there something more that I must do?

Thank you in advance for your help.

Pradeep

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Pradeep,

If you want to use a button as image button, you need to sign the type as bt_Image.

oButton.type = bt_Image

Hope this help,

Nick