CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2009
    Posts
    3

    Help with Forms array

    Hey I'm trying to create a program that allows a user as many forms as needed. to do so I know I need to use the arraylist. I'm not very familure with it though. so how would I use it so each time an event occures, it creats and manipulates a new form and can later accses the array to further manipulate any of the forms that were created?

    I was kinda thinking something like this would work but lol I couldn't have been more wrong.

    Dim FormArray as ArrayList

    Sub Fuction()
    Dim NewForm as form

    FormArray.add(New Form)

    NewForm = FormArray(0)
    NewForm.Property = Value

    End Sub


    Yes I am new at this.. I just stared going to school for it and our teacher isn't familure with VB at all so I'm kinda in the dark going ahead.. So if anyone could please help that would be awesome. Thanks

  2. #2
    Join Date
    Nov 2009
    Posts
    3

    Re: Help with Forms array

    Sorry forgot to mention I'm using VB 2008 express edition, if anyone knows what I can't do in it that I could with a full verion that would also be helpful

  3. #3
    Join Date
    Nov 2009
    Posts
    3

    Re: Help with Forms array

    wow I'm dumb.. I was right just forgot to declare my arraylist as new... sigh.. lol how do I delete a thred I created?

  4. #4
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Help with Forms array

    You can't, but a moderator can.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  5. #5
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Re: Help with Forms array

    Quote Originally Posted by dglienna View Post
    You can't, but a moderator can.
    But won't

    Because it adds value for the members ( the question and answer has been supplied in the posts ).

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