on 11-13-2006 11:15 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
9 | |
9 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.