I my Main Form, there are two buttons that will display other Forms
(each button displays a single new form)
now, my main form class name is MyMainForm ..
The other two forms class names are: MySubForm1 , MySubForm2
the problem is that I’m having some trouble accessing some of the stuff in MyMainForm
inside of the sub forms ..
Is it a good idea to have them all partial ?
Sounds to me like you are expecting to be able to access private members of a form from a different form.
You need to have a reference from the “SubForms” to the parent form should you wish to be able to access any of its members.
Secondly, you won’t be able to access “private” members. Again two options, either create public get/set methods for the members you want, or alternatively change the access modifier of objects to public/internal.
Post some more code explaining what you have tried and what you are trying to achieve and I may be able to point you in the correct direction.
Also, in more direct response to your question, partials have nothing to do with what you are trying to do, they are for extending existing classes whilst maintaining separation of code in logical files.
With this setup, your OtherForm has a copy of the text values as they were at the time of the forms creation.
By the sounds of your question and following comments, this is what you expect in your scenario, but I will say again, show us some code and we can help better. Partials is definately not the right answer.