H
H_stone
I have a MainForm class and a second class which initializes an
instance of a second class which I call CommunicationManager.
This is just a simplified representation of the MainForm class:
partial class MainForm : Form
{
[STAThread]
static void Main()
{
Application.Run(new MainForm());
}
// Public accessor
public string textToDisplayBox
{
set { this.textBox4.Text = value; }
}
// CommunicationManager
CommunicationManager comm = new CommunicationManager();
}
The CommunicationManager class has a simple function, i.e. to collect
in a string the output from the comport...
My troubles stem from the fact that I am unable to reference back to
the form which second class is initiated.
Do you have any suggestions on how to achieve this?
Best regards,
H
instance of a second class which I call CommunicationManager.
This is just a simplified representation of the MainForm class:
partial class MainForm : Form
{
[STAThread]
static void Main()
{
Application.Run(new MainForm());
}
// Public accessor
public string textToDisplayBox
{
set { this.textBox4.Text = value; }
}
// CommunicationManager
CommunicationManager comm = new CommunicationManager();
}
The CommunicationManager class has a simple function, i.e. to collect
in a string the output from the comport...
My troubles stem from the fact that I am unable to reference back to
the form which second class is initiated.
Do you have any suggestions on how to achieve this?
Best regards,
H