S
Steve Long
Hello,
A UserControl that I'm developing is causing an InvalidCastException to be
thrown when the form, with the userControl on it, is shown. The trouble is
that I don't seem to be able to debug the exception. A dialogbox is shown
with the following information when I open the form in design mode:
The following exception occured:
InvalidCastException: Specified cast not valid.
I've put a breakpoint in the UserControl_Load event and it never hits the
breakpoint when I open the form. Can someone help me in finding out how to
track this problem down?
Thanks in advance
Steve
A UserControl that I'm developing is causing an InvalidCastException to be
thrown when the form, with the userControl on it, is shown. The trouble is
that I don't seem to be able to debug the exception. A dialogbox is shown
with the following information when I open the form in design mode:
The following exception occured:
InvalidCastException: Specified cast not valid.
I've put a breakpoint in the UserControl_Load event and it never hits the
breakpoint when I open the form. Can someone help me in finding out how to
track this problem down?
Thanks in advance
Steve