1
Answer

acces variable from another method

Photo of Violeta Popa

Violeta Popa

12y
1.2k
1
Hi..How can i acces in a method a variable from another method? There is my code:

private void modificaCategorie_Load(object sender, EventArgs e)
{
        string text=textBox1.Text;
}

private void button1_Click(object sender, EventArgs e)
{
        if(text=="abc")
}

Answers (1)