M
Marc the Demi-Programmer
I have a rather simple form that takes a user name and password,
validates it, and loads another form. All this is done in the click
event for the one and only button on the form. Everything works fine
except that after the event is finished the form breaks because of an
unhandled system.argument exception, and highlights the form class
declaration. This only happens when I do the form.show command in the
click event. When I comment it out I do not get the exception. The
strange thing is that I get the exception even when I use a try - catch
block. I know it is the form.show() that is the problem as commenting
that out, regardless of the try-catch block, prevents the exception. If
I can figure out what exactly is causing the exception I could probably
figure this out on my own. I know that the try-catch system is working
as it has caught other problems.
Marc
validates it, and loads another form. All this is done in the click
event for the one and only button on the form. Everything works fine
except that after the event is finished the form breaks because of an
unhandled system.argument exception, and highlights the form class
declaration. This only happens when I do the form.show command in the
click event. When I comment it out I do not get the exception. The
strange thing is that I get the exception even when I use a try - catch
block. I know it is the form.show() that is the problem as commenting
that out, regardless of the try-catch block, prevents the exception. If
I can figure out what exactly is causing the exception I could probably
figure this out on my own. I know that the try-catch system is working
as it has caught other problems.
Marc