I have Login form where textBox1 contain user ID.I'm trying to use entered ID in another windows form.In LOGIN Form strvalue have ID, but in Another Form strvalue is empty. Sorry for dumb question.
code - LOGIN Form:
public static string strvalue = "";
private void button22_Click(object sender, EventArgs e)
{
strvalue = textBox1.Text;
}
code Another Form:
LOGIN LF = new LOGIN();
MessageBox.Show(LF.strvalue);