Sign in to follow this  
gamechampionx

VB.net problem

Recommended Posts

I have a VB.net program that will compile. When I step through the progam, it starts Shared Sub Main which looks like: Shared Sub Main() Application.Run(New main) End Sub main is just the main form of the program. It then goes to: #Region " Windows Form Designer generated code " Public Sub New() MyBase.New() 'This call is required by the Windows Form Designer. InitializeComponent() 'Add any initialization after the InitializeComponent() call End Sub It goes through those two lines in the method, and returns to Application.Run(New main). I step once more and it crashes, saying: An unhandled exception of type 'System.IndexOutOfRangeException' occurred in system.windows.forms.dll Additional information: Index was outside the bounds of the array. What type of error is this? I'm not sure if it's in my code or if it's something more structural.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this