I am writing a large and complex sub procedure in a form, and when there is a certain amount of code or more I receive the error 'Common Language Runtime detected an invalid program' when it reaches this sub procedure during runtime. I am fairly new to VB.net, and don't really know how I could put that code in another class, or do something else.
Follow up on the replies you already got to the question in microsoft.public.dotnet.general instead of reposting it. Nathan Smith wrote: > I am writing a large and complex sub procedure in a form, and when there is > a certain amount of code or more I receive the error 'Common Language > Runtime detected an invalid program' when it reaches this sub procedure > during runtime. > I am fairly new to VB.net, and don't really know how I could put that code > in > another class, or do something else. > >