I have two Forms
in my application. A Form
for data from an engine that has the following fields: txtPotencia
, txtTensao
, and txtCorrente
.
I would like to access the values entered in these TextBox
through another Form
.
In the second Form
I instantiated an object of the first Form (MotorForm), however I do not have access to TextBox
.
public MacroForm()
{
InitializeComponent();
MotorForm motorForm = new MotorForm();
motorForm.Show();
}
Is there anyway?