Results 1 to 9 of 9

Thread: Dynamic Labels [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2008
    Posts
    31

    Resolved Dynamic Labels [RESOLVED]

    I have searched this forum for hours for an answer to this question. There are many posts that are related to this but not exactly what i need to know...
    What i am trying to do is after making labels dynamically how can i change the caption/text of each label indipendently from a button? The name of the dynamic labels is always changing and that info is retrieved from an xml file that can be changed so nothing can be static except for the button that initializes that label.text change...


    here is the code i used to create the dynamic labels.

    Code:
            Dim lbl As New Label
            Me.Controls.Add(lbl)
            With lbl
                .Name = ChangingVariable
                .Parent = Me.Image1
                .BackColor = Color.Transparent
                .BringToFront()
                .Top = 0
                .Left = 0
                .Width = 25
                .Height = 55
            End With
    Last edited by Halisco; Apr 23rd, 2008 at 05:40 PM.

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