CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: New List Boxes

  1. #1
    Join Date
    Sep 2001
    Posts
    9

    New List Boxes

    When you create a new Form in run-time mode ie

    Dim frms(100) as Form
    dim intform as Integer

    for intform=1 to 100
    set frms(intForm) = new frmMain
    frms(intform).caption=intform
    frms(intform).show
    next intform





    How do you create new Listboxes in the same manner??


  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: New List Boxes


    Private Sub cmdAddButton_Click(Index As Integer)
    Static counter As Integer
    counter = counter + 1
    If counter < 4 Then
    Load cmdAddButton(counter)
    With cmdAddButton(counter - 1)
    cmdAddButton(counter).Move _
    .Left + .Width + _
    (10 * Screen.TwipsPerPixelX), .Top
    End With
    cmdAddButton(counter).Visible = True
    End If
    End Sub



    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

  3. #3
    Join Date
    Sep 2001
    Posts
    9

    Re: New List Boxes

    How do you create new listboxes? using the "NEW" method


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

Featured