hey guys,
i have a form with a public property called OpenArgsChildDictionary.
any form that wants to access it can just called Form_MyForm.OpenArgsChildDictionary no problem
however, when i use this form as a sub form, i cannot access the OpenArgsChildDictionary anymore.
i'm quite sure the explanation behind it is - the parent form is housing an instance of the sub form - and thus when i just use Form_MyForm.OpenArgsChildDictionary, it doesn't work anymore because it is accessing the code behind instance if the form is just opened as a top level form.
so i know how to access controls on the subform --> simply ParentForm.SubContainer.SubForm.txtMessage
but how do i reference the code behind of a subform? that really beats me now ha.
help help guys!! thanks!! = ))
ASKER
as always, your advice worked perfectly = )
whilst reading the last paragraph of your comment here, i thought about my app and its structure - and also the comments made on it previously by everyone.
i think that how i structured my app is not wrong - in the sense when i'm adding features now and extending it, i can do it. can i do it easily? hrmm, i CAN do it but it is a little bit tedious - i put a lot of "red tape" / "seemingly unnecessary code" in my app so that the groundwork for extending it is there and it can be extended definitely - whether extension is easy or tedious - at least it is following strict explicit rules and so long as i follow those rules i can extend me app = )
HOWEVER, as my skill level increased during the development of the app due to your fantastic coaching and all the advice from the other fantastic experts here as well and all the reading i've done, i've changed the "code rules" a little bit in my app and i have not had the time to update it yet. i doubt i can in quite awhile.
but to critique my app now,
1) i need to streamline my code getting rid of things that i thought i would need last time but i don't anymore
2) i need to follow a more human understandable framework (more on this below)
i went to re-read your answers to my question "how to pass dictionary through openargs" https://www.experts-exchange.com/questions/28228242/how-to-pass-dictionary-through-openargs.html?anchorAnswerId=39472548#a39472548
when i say more human understandable framework, i mean something like what you're teaching me above. like how things happen in nature.
hrmm you know i read somewhere before on this observation that the world is very human customised. in the sense railing on a staircase going down. why are they metal or wood, instead of say a gooey material (sorry i'm not very familiar with materials engineering!! haha = )) )? because the human skin is more compatible with metal or wood (or others). why are shoes made from a certain material as well? because our human programmed body is most comfortable towards that material.
this question comes about when we're deciding cryogenics. if we're going to make artificial bodies, why do we choose silicon? (err i think they're choosing silicon i'm not sure!! haha) because it's the closest to our human bodies? so what if we decide that everyone's brain were to be transferred to a metal body with high electrical conductivity? the landscape of our world would definitely change - and pronto haha = )
so i think as a human, i have to understand my limitations. i also remember reading somewhere in an established religious text (the religion is based on logic not faith) there are deliberately unanswered questions because these exceed our human limitations and we're just not programmed to understand these things. a human can only be a good human, best human, enlightened human, wise human but at the end of the day the human is still a human. some knowledge belongs to wisdom only attainable by using a different processing architecture - NOT the human brain.
and as such, i need to structure my app more towards where you're pointing - analogies of nature (mostly) or things that we already understand - and thus object oriented programming. using our pervasive knowledge and experience of tactile objects in the physical world to model our intellectual understanding of programming = )
at present, these are the 2 criticisms i can give of my own work! i'm sure there are more but i need to clear these 2 first before i can move on to more criticisms = ))
thanks for all your help and guidance Christian!! = ))