controlling the dynamically created labels

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gediko
    New Member
    • Sep 2007
    • 2

    controlling the dynamically created labels

    hi all,
    i am creating a series of labels, which the number of labels is defined by the user.

    dim labels( ) as label

    after learning the number,

    redim labels(i)

    then i am changing their sizes and other properties and put them in a geometrical placement, but after the form shown, i have to control the labels, like clicking them to change their color... but i couldn't... code doesn't recognize any of the labels i created by the array and i can't use withevents for arrays...

    please help me... thanks
  • QVeen72
    Recognized Expert Top Contributor
    • Oct 2006
    • 1445

    #2
    Hi,

    u r creating the Control array of Labels in FormLoad event (RunTime) or Design Time..?

    REgards
    Veena

    Comment

    • gediko
      New Member
      • Sep 2007
      • 2

      #3
      i am creating them runtime

      Comment

      • QVeen72
        Recognized Expert Top Contributor
        • Oct 2006
        • 1445

        #4
        Hi,

        If u r creating them @ runtime using the "Load" statment,
        then after loading them, u will have to make them Visible =True , and move it(by changing Left and Top of newly loaded labels) ,
        other wise, subsequently created labels will be overlapped..


        REgards
        Veena

        Comment

        Working...