B
Brian Link
The design of my app is such that I have a main form which loads a
variety of user controls. Sometimes these controls will contain their
own constituent sub-controls.
The main form should respond to changes in the constituent controls,
either by showing/hiding menus, or updating status bar text.
Currently I'm rippling up events through the usercontrols back to the
main form. This is proving more and more cumbersome. In VB6, I could
refer to another form directly, but since the main form is
instantiated under vb.net it's not necessarily visible to the
sub-controls in any obvious way.
Does anyone have a strategy for calling a procedure in another form?
Where is the reference to my main form? I'd like to be able to either
call a global routine which fires off a routine in the main form, or
refer to the main form directly.
Thanks
Brian Link, Minnesota Countertenor
----------------------------------
"There are things that we know, and then there are known
unknowns. That is to say, there are things that we now
know that we don't know. But there are also unknown unknowns.
There are things we do not know we don't know."
- U.S. War Secretary, 2003
variety of user controls. Sometimes these controls will contain their
own constituent sub-controls.
The main form should respond to changes in the constituent controls,
either by showing/hiding menus, or updating status bar text.
Currently I'm rippling up events through the usercontrols back to the
main form. This is proving more and more cumbersome. In VB6, I could
refer to another form directly, but since the main form is
instantiated under vb.net it's not necessarily visible to the
sub-controls in any obvious way.
Does anyone have a strategy for calling a procedure in another form?
Where is the reference to my main form? I'd like to be able to either
call a global routine which fires off a routine in the main form, or
refer to the main form directly.
Thanks
Brian Link, Minnesota Countertenor
----------------------------------
"There are things that we know, and then there are known
unknowns. That is to say, there are things that we now
know that we don't know. But there are also unknown unknowns.
There are things we do not know we don't know."
- U.S. War Secretary, 2003