PDA

Click to See Complete Forum and Search --> : Accessing Controls [Resolved]


jordan23
Jul 21st, 2004, 02:14 PM
Label lbltest = new Label();
this.Panel1.Controls.Add(lbltest);

How would I access this lbl in another method?

I thought it would be something like this.Panel1.Controls but it did not show up. Any ideas??

Pirate
Jul 21st, 2004, 03:15 PM
this.Panel1.Controls[index].XXX

jordan23
Jul 21st, 2004, 04:12 PM
Thanks Pirate, you are well on your way to earning your first pay check!!! :D