Function: Unable to add top level control to resolution in control

Source: Internet
Author: User

Scenario Description : When you are working on a project, you need to operate on two interfaces at the same time, so you use the TabControl control when you add form forms to TabPage

Error: Unable to add top level control to resolution in control


Workaround :

                        Frm_checkerr = new Nwchk2err.frmcheckerror ();   
                        Frm_checkerr.xmlinfile = Xmlinparam;
                        Frm_checkerr.onshowendreslut + = Frm_check_onshowendreslut;
                        FRM_CHECKERR.TRIGJTBC + = FRM_CHECKERR_TRIGJTBC;
                        TABORDER1.CONTROLS.ADD (frm_checkerr);
                        Frm_checkerr.toplevel = false;               Set to non-top-level control
                        frm_checkerr.mdiparent = this;               Adding the basic error
                        TABORDER1.CONTROLS.ADD (frm_checkerr) in parallel;        Add Interface
                        //splitcontainer1.panel2.controls.add (tabOrder1) in TabPage;
                        Frm_checkerr.show ();


Note : You must initialize before use, the newly created Form object can set toplevel already used form (show or open) cannot use toplevel, what is the top-level control to be studied



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.