Results 1 to 5 of 5

Thread: Arranging textbox array causing IndexOutOfRangeException at 41

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2021
    Posts
    46
    cancelling; trouble found
    Last edited by VisualBeginner.NET; Aug 29th, 2021 at 04:33 AM. Reason: trouble found

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,413

    Re: Arranging textbox array causing IndexOutOfRangeException at 41

    Arrays are zero based. They start at element 0...
    Other than that, your code needs formatting properly

  3. #3

    Thread Starter
    Member
    Join Date
    Jul 2021
    Posts
    46

    Re: Arranging textbox array causing IndexOutOfRangeException at 41

    Thanks.

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Arranging textbox array causing IndexOutOfRangeException at 41

    Don't edit your OP and delete the question. Now this thread is all but useless. How is someone else who has the same issue as you supposed to know that this thread could help them now?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    9,017

    Re: Arranging textbox array causing IndexOutOfRangeException at 41

    I think moderators should have the ability to undo post edits for situations like this. A lot of people do this for some reason that escapes me.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

Tags for this Thread

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