Problem with UserControl in Visual Studio 2003

S

schaf

Hi NG!
I have a problem with the Visual Studio 2003 and my source code. When
I open my form, which contains a user control (derived from another
user control), and I change the size of a control in this form, the
designer deletes source code in my form. Additional I get the
following messages in the task list:

1.) An exception occurred while trying to create an instance of XYZ.
The exception was "Object reference not set to an instance of an
object.".

2.) The variable 'xyz' is either undeclared or was never assigned.

So It seems to be the problem described in the KB842706:
http://support.microsoft.com/?kbid=842706

Do you have hints about the issue? I have seen that the hotfix did not
help to solve the problem for some users.
What's the experience with this hotfix?

Thanks for hints
Regrads
Marcel
 
S

schaf

Hi All!
I could solve the problem!
The user control raised an exception in the constructor. So it was my
fault!

Thanks and Regards
 

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