Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9269

Re: How to remove the menu items when remove Add-On

$
0
0

hi.

I am using below code... for killing the exe at process

but i am not understood menu items.

what type of menu items..

once close the b1 where is menu items..

can u plz explain..

 

  Private Sub app_AppEvent(ByVal EventType As SAPbouiCOM.BoAppEventTypes) Handles objApplication.AppEvent

        Try

            Select Case EventType

                Case SAPbouiCOM.BoAppEventTypes.aet_ShutDown

 

 

                    objApplication.MessageBox("A Shut Down Event has been caught" & _

                        Environment.NewLine() & "Terminating 'Add Menu Item' Add On...")

                    '// terminating the Add On

                    ' oApplication.SetMessage("SAP Business One is Shutting down..", SAPbouiCOM.BoStatusBarMessageType.smt_Warning)

                    System.Windows.Forms.Application.Exit()

 

 

 

 

                Case SAPbouiCOM.BoAppEventTypes.aet_CompanyChanged

 

 

                    objApplication.MessageBox("A Shut Down Event has been caught" & _

                        Environment.NewLine() & "Terminating 'Add Menu Item' Add On...")

 

 

                    'oApplication.SetMessage("Company has been changed.", SAPbouiCOM.BoStatusBarMessageType.smt_Success)

                    System.Windows.Forms.Application.Exit()

 

 

 

 

                Case SAPbouiCOM.BoAppEventTypes.aet_ServerTerminition

 

 

                    objApplication.MessageBox("A Shut Down Event has been caught" & _

                        Environment.NewLine() & "Terminating 'Add Menu Item' Add On...")

                    'oApplication.SetMessage("All Add-on are Shutting down..", SAPbouiCOM.BoStatusBarMessageType.smt_Success)

                    System.Windows.Forms.Application.Exit()

 

 

 

 

                Case SAPbouiCOM.BoAppEventTypes.aet_LanguageChanged

                    objApplication.MessageBox("A Shut Down Event has been caught" & _

                       Environment.NewLine() & "Terminating 'Add Menu Item' Add On...")

 

 

                    ' oApplication.SetMessage("System Language has been changed.", SAPbouiCOM.BoStatusBarMessageType.smt_Success)

 

 

                    'Case SAPbouiCOM.BoAppEventTypes.aet_CompanyChanged, SAPbouiCOM.BoAppEventTypes.aet_LanguageChanged, SAPbouiCOM.BoAppEventTypes.aet_ServerTerminition, SAPbouiCOM.BoAppEventTypes.aet_ShutDown

                    '    System.Windows.Forms.Application.Exit()

            End Select

        Catch ex As Exception

            'oApplication.StatusBar.SetText(ex.Message)

        Finally

        End Try


Viewing all articles
Browse latest Browse all 9269

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>