Skip to Content
0
Former Member
Nov 13, 2006 at 11:15 PM

Why do images not show up for buttons?

51 Views

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