Results 1 to 2 of 2

Thread: [RESOLVED] How to change a property of a label control created at runtime?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2012
    Posts
    290

    Resolved [RESOLVED] How to change a property of a label control created at runtime?

    I create some labels as follows:

    Name:  xmnx.jpg
Views: 131
Size:  34.6 KB

    When I resize the form I don't know how to change the position of the labels that I have been already created. Well, the new position will be... New.Point(X,Y)
    But how can I refer to a specific label?
    Attached Images Attached Images  
    Last edited by Jose_VB; Oct 3rd, 2013 at 03:10 AM.

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2012
    Posts
    290

    Re: Modifying runtime created labels?

    Resolved:

    Me.Controls("Label" & Number).Location = New Point (X,Y)

    Example:
    Me.Controls("Label1").Location = New Point (100,500)

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