I have the TextBox eingabe
in my form3
Now my plan is to save the TextBox eingabe
as a String and than give out the String on my form4
How is this possible? I tried:
//form3.cs
public partial class Form3 : Form
{
public Form3()
{
InitializeComponent();
}
private void eingabe_TextChanged(object sender, EventArgs e)
{
}
private void openWindow(object sender, EventArgs e)
{
this.Hide();
Form4 form4 = new Form4();
form4.ShowDialog();
String help = eingabe.Text;
}
}
//form4.cs
public partial class Form4 : Form
{
public Form4()
{
InitializeComponent();
}
private void Form4_Load(object sender, EventArgs e)
{
ausgabe = help;
}
private void ausgabe_Click(object sender, EventArgs e)
{
}
}
That doesn't work. Please don't judge me I am new to all this...