Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. array of control

array of control

Scheduled Pinned Locked Moved Visual Basic
data-structuresquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ali kanju
    wrote on last edited by
    #1

    how can i get an array of any control in visual basic to use them one by one by clicking one command button. waiting for solution.thanx

    C R 2 Replies Last reply
    0
    • A ali kanju

      how can i get an array of any control in visual basic to use them one by one by clicking one command button. waiting for solution.thanx

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      What do you want to do ? VB6 or VB.NET ? Christian Graus - Microsoft MVP - C++

      1 Reply Last reply
      0
      • A ali kanju

        how can i get an array of any control in visual basic to use them one by one by clicking one command button. waiting for solution.thanx

        R Offline
        R Offline
        rwestgraham
        wrote on last edited by
        #3

        I am not sure I understand your question, and you need to specify what version of VB you are using. In VB6 you can create arrays of controls and enumerate them like any array. In VB.NET you cannot create arrays of controls, but you can add controls to the Controls collection of a form, a panel or a groupbox dynamically. You also can enumerate the control collections of any container (i.e. a form, panel, groupbox).

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups