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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
H

hollywood_t

@hollywood_t
About
Posts
2
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Help using control collection
    H hollywood_t

    ' Run once after the form is loaded and conrtols are created Dim slControls as SortedList Dim i as Integer for i - 0 to me.controls.count - 1 'You may include a CASE or IF statement if you want to selectively add slControls.add(me.controls(i).name, i) next 'In your event handler for each control that changes 'that is of interest to you write sub routines for adding, removing 'sorting, etc..... '*include appropriate code to filter those controls you need 'slControls.Remove(me.controls(i).name) 'slControls.Add(me.controls(i).name, Index) 'To retrieve a control's info simply loop through the array for i = 0 to slControls.count - 1 slControls.GetKey(i) ' Returns the key - in this example's case - the NAME slControls.GetbyIndex(i) ' Returns the value - in this example's case - the Order in the Collection ' Do your validation here using the values returned from the array slControls next '*** NB - code has been typed - please check for errors *** Hollywood_t

    Visual Basic help tutorial

  • Help using control collection
    H hollywood_t

    I have the same problem. My form has over 100 controls. I would like to loop throught the controls in a particular order. Is this possible? I can loop through the controls using [ me.Controls(i) ] but the default collection does not contain the controls in the order I require. This was easy using the index property in previous versions. eg Loop through Label_01 to Label_23 then Label_45 to label_62. I could do this using a Case statement but think that this is not good style and may slow the application. If you can help I would be thankful. Hollywood_t

    Visual Basic help tutorial
  • Login

  • Don't have an account? Register

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