Results 1 to 4 of 4

Thread: How to add labels in run-mode?

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2008
    Posts
    42

    How to add labels in run-mode?

    I dont know if this has already been discussed, but I would really like to see how to make new labels in runmode?

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: How to add labels in run-mode?

    Welcome to the forums.
    Quote Originally Posted by Thediabloman
    I dont know if this has already been discussed
    Many, many times.

    Here is just one example.

  3. #3

    Thread Starter
    Member
    Join Date
    Mar 2008
    Posts
    42

    Re: How to add labels in run-mode?

    Thanks alot mate.. And thanks.. :P

    I have a couple of questions..
    I would like to add in an array? How do I do this?
    I cant write:
    Code:
            Set futureLabel = Me.Controls.Add("VB.Label", "futureLabel"(n))
    I would also like to start a timer for every time I add a label. The timers have the same code, except which label they are affecting..

  4. #4
    Addicted Member
    Join Date
    Oct 2006
    Location
    Chennai, India
    Posts
    198

    Re: How to add labels in run-mode?

    Try using the INDEX property of the Label control. or try using something like

    Set futureLabel = Me.Controls.Add("VB.Label", "futureLabel" & n)

    "n" should hold the running number ....
    Last edited by cheenu_vasan; Mar 10th, 2008 at 08:39 AM.
    Regards
    Srinivasan Baskaran
    India

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