CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Installing SQL Server 2008
  • Writing UDFs for Firebird Embedded SQL Server
  • [Updated] Shutdown Manager
  • Building Windows Azure Cloud Service Applications with Azure Storage and the Azure SDK

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Visual Basic Programming > Visual Basic .NET
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    Visual Basic .NET Microsoft Visual Basic .NET and related questions.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old November 7th, 2009, 03:54 AM
    Vunpac Vunpac is offline
    Junior Member
     
    Join Date: Nov 2009
    Posts: 3
    Vunpac is an unknown quantity at this point (<10)
    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
    Reply With Quote
      #2    
    Old November 7th, 2009, 04:10 AM
    Vunpac Vunpac is offline
    Junior Member
     
    Join Date: Nov 2009
    Posts: 3
    Vunpac is an unknown quantity at this point (<10)
    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
    Reply With Quote
      #3    
    Old November 7th, 2009, 04:42 AM
    Vunpac Vunpac is offline
    Junior Member
     
    Join Date: Nov 2009
    Posts: 3
    Vunpac is an unknown quantity at this point (<10)
    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?
    Reply With Quote
      #4    
    Old November 7th, 2009, 12:18 PM
    dglienna's Avatar
    dglienna dglienna is offline
    ex MVP - Visual Basic
    Power Poster
     
    Join Date: Jan 2006
    Location: Chicago, IL
    Posts: 9,894
    dglienna has a brilliant future (2000+)dglienna has a brilliant future (2000+)dglienna has a brilliant future (2000+)dglienna has a brilliant future (2000+)dglienna has a brilliant future (2000+)dglienna has a brilliant future (2000+)dglienna has a brilliant future (2000+)dglienna has a brilliant future (2000+)dglienna has a brilliant future (2000+)dglienna has a brilliant future (2000+)dglienna has a brilliant future (2000+)
    Re: Help with Forms array

    You can't, but a moderator can.
    __________________
    David CodeGuru Article: Bound Controls are Evil-VB6
    101 Samples: VB & C# VS2008 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!
    Reply With Quote
      #5    
    Old November 9th, 2009, 02:20 AM
    HanneSThEGreaT's Avatar
    HanneSThEGreaT HanneSThEGreaT is offline
    The Moody Mod
    Power Poster
     
    Join Date: Jul 2001
    Location: Vereeniging, South Africa
    Posts: 7,685
    HanneSThEGreaT has a reputation beyond repute (3000+)HanneSThEGreaT has a reputation beyond repute (3000+)HanneSThEGreaT has a reputation beyond repute (3000+)HanneSThEGreaT has a reputation beyond repute (3000+)HanneSThEGreaT has a reputation beyond repute (3000+)HanneSThEGreaT has a reputation beyond repute (3000+)HanneSThEGreaT has a reputation beyond repute (3000+)HanneSThEGreaT has a reputation beyond repute (3000+)HanneSThEGreaT has a reputation beyond repute (3000+)HanneSThEGreaT has a reputation beyond repute (3000+)HanneSThEGreaT has a reputation beyond repute (3000+)
    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 ).
    __________________
    My Latest Articles :
    VB and Internet Explorer Browsing History || The TaskBar and VB.NET || Changing Mouse Settings with VB.NET || Creating Your Own Encryption / Decryption Program Using VB.NET 2005
    Find All My Articles : Here

    FAQs :
    .NET FrameWork FAQs || Visual Basic.NET FAQs || C# FAQs

    Be The Change That You Want To See In The World - Michael Scofield, Prison Break; Season 1 Episode 1

    Read This Before You Post || Acceptable Use Policy
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Visual Basic Programming > Visual Basic .NET


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 04:35 PM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
    Copyright WebMediaBrands Inc. 2002-2009