jo thanks,
i've found also a solution...
it's a little bit easier ^^
form1:
private void button1_Click(o bject sender, System.EventArg s e)
{
Form2 frm=new Form2(textBox1. Text);
frm.Show();
}
form2:
public Form2(string strTextBox)
{
InitializeCompo nent();
label1.Text=str TextBox;
}
now, i see,...
User Profile
Collapse
-
problem with 2 forms and 1 textbox
hi @ all,
i have a little problem...
i have 2 forms (form1 and form2)
on form1 threre is a textbox TB1 and a button BT1
by clicking on BT1 i switch to form2
so now the problem:
in TB1 is a text which i want to give out via a messagebox on form2... but form2 don't know about the TB1... also when i save the content of TB1 in a string at form1 an switch to form2 the string don't be known...
No activity results to display
Show More
Leave a comment: