cancel
Showing results for 
Search instead for 
Did you mean: 

Application events with Developer Environment

Former Member
0 Kudos

Hi, I'm using SBP Development Environment for SBO 2005. How can I add event handlers for the SAPbouiCOM.Application object. I guess it is the B1Connections.theAppl object, but how can I add an event handler, for the Item_Event, for example.

Accepted Solutions (1)

Accepted Solutions (1)

former_member191896
Active Participant
0 Kudos

Hi Rassiel,

If you are using B1DE, the methods for handling the Application object events are generated by B1DE


        public override void OnShutDown() {
            // ADD YOUR TERMINATION CODE HERE	...
        }
        
        public override void OnCompanyChanged() {
            // ADD YOUR COMPANY CHANGE CODE HERE	...
        }
        
        public override void OnLanguageChanged(BoLanguages language) {
            InitializeMenus();
            // ADD YOUR LANGUAGE CHANGE CODE HERE	...
        }

If you want to add an event handler of your own for Application object, refer to the SDK sample code SAP Business One SDK\Samples\COM UI\<CSharp|VB>\02.CatchingEvents

Regards

Aravind

Answers (0)