cancel
Showing results for 
Search instead for 
Did you mean: 

regarding logo

Former Member
0 Kudos

HI All,

This is krishna, I created a user defined Menu. For that i put a logo and placed after production. Before addon regestration it is showing fine. But when i regestred that, the logo is displaced. I am sending my code, once chck it tel me what happend.

oMenuItem = SBO_Application.Menus.Item("43520"); // moudles'

string sPath = null;

sPath = Application.StartupPath;

sPath = sPath.Remove(sPath.Length - 9, 9);

// find the place in wich you want to add your menu item

// in this example I chose to add my menu item under

// SAP Business One.

oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_POPUP;

oCreationPackage.UniqueID = "MyMenu01";

oCreationPackage.String = "Quality Assurance";

oCreationPackage.Enabled = true;

oCreationPackage.Image = sPath + "UI.bmp";

oCreationPackage.Position = 9;

oMenus = oMenuItem.SubMenus;

Thanx and Regards,

krishna.v

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi..

check Ur Ard folder image is there or not.

Regards..

Billa 2007

Former Member
0 Kudos

Hi Krishna,

place this file in ur main file i.e where u create the udo's and create tables

objmenu.Item("CT_Menu01_KB").Image = System.Windows.Forms.Application.StartupPath & "/VID1.bmp"

CT_Menu01_KB-plcae ur menu id

VID1.bmp-ur image file

Rgds

Micheal

Former Member
0 Kudos

hi,

place image along with the exe and DLL Files use the below code

Dim oMenu As SAPbouiCOM.Menus = SBO_Application.Menus

Dim oMenuItem As SAPbouiCOM.MenuItem

Dim SPath As String

SPath = Application.StartupPath

Try

SPath = CurDir()

Catch ex As Exception

End Try

oMenuItem = SBO_Application.Menus.Item("43520")

oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_POPUP

If SBO_Application.Menus.Exists("MainMenuUID") Then

SBO_Application.Menus.RemoveEx("MainMenuUID")

End If

oCreationPackage.UniqueID = "MainMenuUID"

oCreationPackage.String = "MainMenuName"

oCreationPackage.Enabled = True

oCreationPackage.Image = SPath & "\xyz.bmp"

oCreationPackage.Position = 9

oMenu = oMenuItem.SubMenus

oMenu.AddEx(oCreationPackage)

oMenuItem = SBO_Application.Menus.Item("MainMenuUID")

oMenu = oMenuItem.SubMenus

regards,

varma