Skip to Content
0
Former Member
Jun 26, 2009 at 06:53 AM

getting error in closing form

152 Views

I have created my form using screen painter. when i am trying to click on cancel button and when i am trying to close form giving error. and also plz help to kill memory after closing form other wise how many times user will open form that many times memory is occupying.


  switch (pval.EventType)
                        {
                            case SAPbouiCOM.BoEventTypes.et_CLICK:

                                if (pval.ItemUID == "btnrefresh")
                                {
                                    PopulateSalesquotationsintomatrix();
                                    //Populatedata();
                                }
                                else if (pval.ItemUID == "btnupdt")
                                {
                                    QuotationtoOrders();

                                }
                                else if (pval.ItemUID == "2")
                                {
                                    

                                }
                                break;
                            case SAPbouiCOM.BoEventTypes.et_FORM_CLOSE:
                                System.Windows.Forms.Application.Exit();
                                
                                //System.Environment.Exit(0); //  Terminating the Add-On Application
                                break;