G
Guest
Hello, friends,
In Windows Form applicaitons, it is often that a form window may need to
interact with other form windows. For example, clicking on a command button
in one form may bring another form to foreground and display text/image
accordingly. Do we normally keep global refrences somewhere for each opened
form windows, so that it is possible for opened windows to interact with each
other? For example:
public static formCollection
{
public static frmWindow1 frm1;
public static frmWindow2 frm2;
public static frmWindow3 frm3;
}
Or, do we want each window form only to keep references to the opened forms
it may need individually?
What is the best approach for this? Any reference papers? Thanks a lot.
In Windows Form applicaitons, it is often that a form window may need to
interact with other form windows. For example, clicking on a command button
in one form may bring another form to foreground and display text/image
accordingly. Do we normally keep global refrences somewhere for each opened
form windows, so that it is possible for opened windows to interact with each
other? For example:
public static formCollection
{
public static frmWindow1 frm1;
public static frmWindow2 frm2;
public static frmWindow3 frm3;
}
Or, do we want each window form only to keep references to the opened forms
it may need individually?
What is the best approach for this? Any reference papers? Thanks a lot.