variables defined in a function have limited scope only to those functions and cant be accessed out side of that function.
public void something()
label1 = "myname";
label2 = "myplace";
I have a checkbox p in here.
p.CheckedChanged + = new EventHandler(pBox_Changed);
public void pBox_Changed(Object sender, System.EventArgs e)
// You can access them because they are defined on the class level.
I hope this will help.