T
Tyler Foreman
Hello,
I have a strange problem that occurs every so often in my
application. It usually takes place when I hide one form
and activate another. What happens is I get the
following exception:
System.ArgumentException occured in
System.Windows.Forms.dll
Additional Information: Invalid Parameter Used.
This occurs sporatically and I haven't found a way yet to
reproduce it reliably. However I just had it occur while
in the debugger and observed some interesting facts:
1. When the debugger stops and highlights the line of
code that the error occured, it is always on the line
where the form is declared and the name of the form
itself is highlighted. For instance, in:
Friend Class Form1
Form1 would be highlighed green by the debugger.
2. It always happens to my startup form (I don't use a
Sub Main). I've tried switching the startup form and the
problems still occurs on the new startup form.
Any ideas or suggestions would be greatly appreciated.
Cheers,
Tyler Foreman
I have a strange problem that occurs every so often in my
application. It usually takes place when I hide one form
and activate another. What happens is I get the
following exception:
System.ArgumentException occured in
System.Windows.Forms.dll
Additional Information: Invalid Parameter Used.
This occurs sporatically and I haven't found a way yet to
reproduce it reliably. However I just had it occur while
in the debugger and observed some interesting facts:
1. When the debugger stops and highlights the line of
code that the error occured, it is always on the line
where the form is declared and the name of the form
itself is highlighted. For instance, in:
Friend Class Form1
Form1 would be highlighed green by the debugger.
2. It always happens to my startup form (I don't use a
Sub Main). I've tried switching the startup form and the
problems still occurs on the new startup form.
Any ideas or suggestions would be greatly appreciated.
Cheers,
Tyler Foreman