Hi all,
I am having difficulties with form scope in my project. I have a main form that spawns a few indentical children form's (I use the term children loosely as the main form is not MDI.) The main form also spawns 2 forms ("Global1" and "Global2") that need to be accessed by the children and in some cases forms spawned by the children (grandchildren) and forms spawned by them (great grand children.) Each of the children counld reside in sepparate class libraries. My question is about setting a refence to the Global forms. If I invoke the Global form at the top of Mainfrm like this
do I need to continually pass a Mainfrm reference to every subsequent child, grand child and great grandchild, or is there a way to declare the global forms globally and avoid the referencesVB Code:
Public Class Mainfrm Inherits System.Windows.Forms.Form Public GlobalOptions As New Systems_Class.GlobalOptionsStruct Public StrategyManager As Strategies.ManageStrategiesfrm
Any input will be appreciated
thanks
kevin
