.net - Parent/Child Relationships failing when getting data from parent class, with multiple forms open -
I have a main form, and some sub-form, and each sub-form can have some sub-form Are there. When I have several sub-forms open, and I try to get data from the parents' form, then this data returns from the wrong parent form. For example, I have two examples of mainform running subform. If I do something like a child of an example of subform, it gives data from other subforms
dim l = mainform.Waff.Lifodata < P> Edit I am using Visual Studio 2008. . In my main form, I am doing this
protected friend frm main menuframe firmname = as new main form
I am doing this in the frame.
Protected friend new subform as frmsub 'frmsub = new subform'
In SubSubForm I am doing this
for each item in frmmain.frmsub.listofdata \\ Something Next
You want the child's property to be established Consider, and then use the parent / child relationship, which is what you're looking for the right list. Something like Me.Parent.listofdata Hope this is an option in your special case - good luck!
Comments
Post a Comment