Results 1 to 3 of 3

Thread: Manual components ?

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2002
    Location
    Netherlands
    Posts
    10

    Manual components ?

    I have been working on this problem for quite some time i need to add 96 listboxes and don't want to do this visual but code base so far i got this :

    Private Sub Generate()
    Dim ctlListBox(7, 14) As New listBox
    Dim ctlTekst As Control
    Dim intGegevensX As Integer, intGegevensY As Integer
    Dim frm As Form

    intGegevensX = 500
    intGegevensY = 300

    Dim I As Integer, J As Integer

    For I = 0 To 13
    For J = 0 To 6
    Set ctlListBox(J, I) = CreateControl(frm.Name, acListBox, , "", "", _
    intGegevensX + (J * 750), intGegevensY + (I * 150), 700, 125)
    Next J
    Next I

    But the problem is that i can't find a way to speak to the listboxes again. Anycan explain me how to do it ?

  2. #2
    DerFarm
    Guest
    ummmm....I don't know how to communicate with the boxes, but
    just from curiosity: Why would you need that many boxes?

  3. #3
    Frenzied Member Shawn N's Avatar
    Join Date
    Dec 2001
    Location
    Houston
    Posts
    1,631
    What if you set ctlListBox as a public variable?
    Please rate my post.

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