Results 1 to 3 of 3

Thread: Changing Label.Text in multiple labels in form.

  1. #1

    Thread Starter
    Member Jared's Avatar
    Join Date
    Nov 2002
    Posts
    58

    Changing Label.Text in multiple labels in form.

    I have a form with around 50 labels. Each have a unique name, (not like label1, label2, etc.).

    Is there code to change all the labels on a form at once?
    "It is preoccupation with possessions, more than anything else, that prevents us from living freely and nobly." -Bertrand Russell

  2. #2
    Hyperactive Member
    Join Date
    Jul 2001
    Location
    UK
    Posts
    271
    unfortunatly not,
    you have to write out all the names of the labels, and set their 'text' property to the new values...

    It would be a good idea to have a function that did this, as could do with it
    §tudz

    Studzworld.com - Portfolio

  3. #3
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Do you want to change your labels while the program is running?

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