Reputation: 109
I have a user control class BaseUserControl
and a class DerivedUserControl
which is derived from BaseUserControl
. Both are shown correctly in the Visual Studio Designer, also after rebuilding the solution.
In the BaseUserControl
I have a protected
label and other protected
controls. This label I wanted to hide for derived controls. So I searched for its name in the user code file as well as in the designer code file of DerivedUserControl
for guaranteeing that it is not used by the DerivedUserControl
and found no occurrences.
Then I set the modifier of this label in the designer of BaseUserControl
from protected
to private
for hiding it. I did not change any other control and no code file.
Then I rebuild the solution again and want to show the designer of DerivedUserControl
. But now Visual Studio crashed.
Therefore I tried to solve the problem by resetting the label modifier per hand to protected
in the designer code file of BaseUserControl
. But in spite of rebuilding Visual Studio still always crashes if I open the designer of DerivedUserControl
.
I have Microsoft Visual Studio Ultimate 2012 Version 11.0.61030.00 Update 4 and Microsoft .NET Framework Version 4.5.50938.
Has anyone an idea for solving this problem?
Upvotes: 1
Views: 141
Reputation: 109
It looks like that some resources which are used in the BaseUserControl
were deleted. Now I have added them again and it runs. But unfortunately I do not know how them were removed and why the BaseUserControl
could be shown without any error in the designer but not the DerivedUserControl
.
Upvotes: 0