G
Guest
hi,
if I instantiate 2 forms from one base class, will control events on both
forms be recognized?
This is what we are doing, in our VB.NET Project we have an MDI form, and a
child form class called frmConfigBrowser.
We instantiate this base class twice, using declarations like this in the
MDI form:
private withevents frmConfigEditor as frmConfirgBrowser
private withevents frmConfigBrowser1 as frmConfirgBrowser
When the user clicks the menu item to open a data file for editing, we
instantiate the first variable, when they select to open a file for reading,
we instantiate the second variable.
But form events are only recognized for the first one we load... so
clicking a listbox on the first one changes another listbox, but a click on
the listbox of the second form loaded is ignored.
Any advice or help would be appreciated - I am new to Windows Forms/.NET and
this is killing us...
thanks
Philip
if I instantiate 2 forms from one base class, will control events on both
forms be recognized?
This is what we are doing, in our VB.NET Project we have an MDI form, and a
child form class called frmConfigBrowser.
We instantiate this base class twice, using declarations like this in the
MDI form:
private withevents frmConfigEditor as frmConfirgBrowser
private withevents frmConfigBrowser1 as frmConfirgBrowser
When the user clicks the menu item to open a data file for editing, we
instantiate the first variable, when they select to open a file for reading,
we instantiate the second variable.
But form events are only recognized for the first one we load... so
clicking a listbox on the first one changes another listbox, but a click on
the listbox of the second form loaded is ignored.
Any advice or help would be appreciated - I am new to Windows Forms/.NET and
this is killing us...
thanks
Philip