Error in an instance of MDI style start

zhaozj2021-02-16  64

Status: I use the MDI style, // below is the code in the "Modification" button of the main form: PriceUpdateFRM mypriceupdateFrm = new priceUpdateFrm (); ??? mypriceupdatefrm.Owner = this; // Set My PriceUpdateFRM is owned by this form ( Key line 1) MyPRiceUpdateFrm.mdiparent = this.parentform; // Set the MDI form as the parent window of this form (Key Line 2) mypriceUpdateFrm.Show ();

// The following is the code for reference objects in myPRiceUpdateFRM form: PriceFRM myparentFRM; // Defines the reference variable type ..THIS.MYPARENTFRM = (PriceFRM) this.owner; // Establish the relationship between the parent form and the main form (Key line 3) // The following is the application code (error position) of the reference object (error position). Key line 2 "must exist. At this time," Key Row 3 "object references an null value, so it will be prompted when the following statement will be prompted" Example of the object reference to the object. "

Excuse me: How to solve this problem?

转载请注明原文地址:https://www.9cbs.com/read-12480.html

New Post(0)