Debugging a problem adding a Usercontrol to a form

J

Just Me

I have a large Usercontrol that I just converted from VB6 (so I'm not
surprised there are bugs in it.)

When I try to add an instance to a form I get an exception occurred trying
to create and instance, "Specified cast not valid"


If it happened at runtime I would breakpoint and single step to find the
statement causing the problem.

What can I do at design time to localize the bug?



Thanks
 
C

Cor Ligthert

Did you see that there is a chat about debugging today/tomorrow depending on
your timezone

Message from Jason Cooke.

[ANN] August 17, "Debugging Visual Basic .NET Applications" chat

Join members of the Visual Basic .NET and Debugging teams to discuss
debugging Visual Basic .NET applications with the Visual Studio .NET
Debugger. Almost every program will need to be debugged sometime, so take
this opportunity to learn more about debugging from the experts.

Date:
August 17, 2004
1:00 - 2:00 P.M. Pacific time
4:00 - 5:00 P.M. Eastern time
20:00 - 21:00 GMT
(For a list of local time zones relative to GMT, please see
http://msdn.microsoft.com/chats/timezones.asp.)

Outlook Reminder:
http://msdn.microsoft.com/chats/outlook_reminders/MSDN_DVBNET_Aug1704.ics

Location:
http://msdn.microsoft.com/chats (then click the name of the chat to enter
the chat room)

For more information about Visual Basic .NET, see
http://msdn.microsoft.com/vbasic/
To see a list of upcoming chats or set a reminder for this chat, see
http://msdn.microsoft.com/chats.
For archives of previous chats, see
http://msdn.microsoft.com/chats/recent.asp.

Thanks!
Jason Cooke
VB.NET Team

========
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.
(c) 2004 Microsoft Corporation. All rights reserved.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top