Results 1 to 6 of 6

Thread: Accessing controls by name [Resolved]

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Location
    Huddersfield, England
    Posts
    83

    Accessing controls by name [Resolved]

    How do I access a control on a form by name i.e. something on the lines of:

    frmMain.Controls("btn1").Text = "Hello"

    where the name will be dynamic e.g. "btn" & CStr(intCount).

    The Controls method requires an integer index, how do I do the lookup?
    Last edited by consciouspnm; Mar 5th, 2005 at 06:31 AM.

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