HighTechTalks DotNet Forums  

Problem with UserControl in Visual Studio 2003

Dotnet General Discussions microsoft.public.dotnet.general


Discuss Problem with UserControl in Visual Studio 2003 in the Dotnet General Discussions forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
schaf@2wire.ch
 
Posts: n/a

Default Problem with UserControl in Visual Studio 2003 - 01-04-2008 , 01:17 AM






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

Reply With Quote
  #2  
Old   
schaf@2wire.ch
 
Posts: n/a

Default Re: Problem with UserControl in Visual Studio 2003 - 01-04-2008 , 01:59 AM






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

Thanks and Regards

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.