G
Guest
I'm working in Visual Studio 2005 and C#.
I have a WinForms application with two panels (left panel and right panel).
I have a textbox on the left panel, and a button on the right panel. I'd like
to have a button-press from the right panel call a function in the left
panel, which might simply Console.Writeline(textBox1.Text);
If I could get the instance of the PanelLeft class, I could simply say:
panelLeftInstance.PrintTextToConsole();
The problem is I don't see how to get an instance of the PanelLeft class. I
placed the PanelLeft and PanelRight panels onto the WinForm from the toolbox.
Thanks,
Randy
I have a WinForms application with two panels (left panel and right panel).
I have a textbox on the left panel, and a button on the right panel. I'd like
to have a button-press from the right panel call a function in the left
panel, which might simply Console.Writeline(textBox1.Text);
If I could get the instance of the PanelLeft class, I could simply say:
panelLeftInstance.PrintTextToConsole();
The problem is I don't see how to get an instance of the PanelLeft class. I
placed the PanelLeft and PanelRight panels onto the WinForm from the toolbox.
Thanks,
Randy