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")
}
Acces variable from another method
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Javeed M ShaikhRank #839 · 2.7K reputationPosted Apr 11, 2013, 11:56 AM EDT
string text = string.Empty;