Skip to Content
0

Button Close ActiveForm

Mar 23, 2017 at 06:28 PM

37

avatar image

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;
            
        }
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Boris Fierro Mar 23, 2017 at 07:00 PM
0

Ok solution is:

Reggars

SAPbouiCOM.Form oForm = Application.SBO_Application.Forms.ActiveForm;
            oForm.Close();
Share
10 |10000 characters needed characters left characters exceeded
Edy Simon Mar 24, 2017 at 01:58 AM
0

Hi,

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

Regards
Edy

Share
10 |10000 characters needed characters left characters exceeded