Skip to Content
author's profile photo Former Member
Former Member

[c#][UI API]:handling events

I have big problem here.I m using c# , and i need some samples (or maybe one sample) in c# where I can find how to deal with events (c# and UI API)...

I can't access the Service Market Place because i don't have a user id and a password there...

plz help:((

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 08, 2005 at 03:26 AM

    Hi Ola, here is some code which might send you on your way... Basically you set the event handlers with the application object...

    // Create Events to Catch Menu, Item and Application Events

    this._SboApplication.MenuEvent += new SAPbouiCOM._IApplicationEvents_MenuEventEventHandler(this.CatchMenuEvent);

    this._SboApplication.ItemEvent += new SAPbouiCOM._IApplicationEvents_ItemEventEventHandler(this.CatchItemEvent);

    this._SboApplication.AppEvent += new SAPbouiCOM._IApplicationEvents_AppEventEventHandler(this.CatchApplicationEvent);

    public virtual void CatchItemEvent(string FormUid, ref SAPbouiCOM.ItemEvent ItmEvent, out bool BubbleEvent)

    {

    BubbleEvent = true;

    }

    public virtual void CatchMenuEvent(ref SAPbouiCOM.MenuEvent MnuEvent, out bool BubbleEvent)

    {

    BubbleEvent = true;

    }

    private void CatchApplicationEvent(SAPbouiCOM.BoAppEventTypes AppEventType)

    {

    BubbleEvent = true;

    }

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.