Skip to Content
avatar image
Former Member

Button Close ActiveForm

Hello A question that can be simple in ui api, like or what code I must add so that when you press a button close the active form (Close). Reggards

 private void Button1_ClickBefore(object sboObject, SAPbouiCOM.SBOItemEventArg pVal, out bool BubbleEvent)
        {
            BubbleEvent = true;
            
        }
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Mar 23, 2017 at 07:00 PM

    Ok solution is:

    Reggars

    SAPbouiCOM.Form oForm = Application.SBO_Application.Forms.ActiveForm;
                oForm.Close();
    Add comment
    10|10000 characters needed characters exceeded

  • Mar 24, 2017 at 01:58 AM

    Hi,

    If you set your button ID = "2", SBO will auto handle this for you.

    Regards
    Edy

    Add comment
    10|10000 characters needed characters exceeded