Results 1 to 3 of 3

Thread: Accessing Controls [Resolved]

  1. #1

    Thread Starter
    Addicted Member jordan23's Avatar
    Join Date
    Dec 2002
    Posts
    166

    Accessing Controls [Resolved]

    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??
    Last edited by jordan23; Jul 21st, 2004 at 04:12 PM.

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Code:
    this.Panel1.Controls[index].XXX 

  3. #3

    Thread Starter
    Addicted Member jordan23's Avatar
    Join Date
    Dec 2002
    Posts
    166
    Thanks Pirate, you are well on your way to earning your first pay check!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width