Using Visual C# I created two forms such as
namespace test
{
public class SystemTray : System.Windows. Forms.Form
{
public createwindow() { stuff here; }
public fadewindow() { stuff to fade here; }
public displaystuffinw indow() { display stuff here; }
}
public class LabelArray : System.Collecti ons.CollectionB ase
{
public make-label-array() { do stuff }
here's the tricky part
public click_handler()
{
make a generic click handler for the array of 20 label's on
the form
}
}
I would like the click_handler() to be able to call the "fadewindow ()"
function even thou its in a different class but I can't get at it since
..net wont let me use multiple inheritance. I can't seem to get a
referecne to the window from the LabelArray class either.
This is a system tray application that has no main window. Based upon
menu options I create forms and create the elements in the form. When a
user clicks on the item I need the click_handler (in a different class)
to be able to close that window which..i can't seem to do since the
click_handler has no way to 'see' that window.
Hope I made that clear enough cause it sure as hell confuses me. Any
ideas how to get a form to access elements in another form in a
different class without being able to inherit it?