Article ID: 839202 - Last Review: November 27, 2007 - Revision: 4.6 The DesignMode property of a nested user control is always set to False in Visual Studio .NET or in Visual Studio 2005
On This PageSYMPTOMSWhen you work with Microsoft Windows Forms in Microsoft Visual Studio .NET or in Microsoft Visual Studio 2005, the DesignMode property of a user control may be set to False. CAUSEThis behavior occurs at design time in Microsoft Visual Studio .NET or in Microsoft Studio 2005 if you nest a user control inside another user control. When you do this, the DesignMode property of the nested user control will return False. If a user control contains another user control, only the root level user control will return True. MORE INFORMATIONSteps to reproduce the behavior
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. REFERENCESFor more information about Windows Forms and about user controls, visit the following Microsoft Web sites: http://msdn2.microsoft.com/en-us/library/system.windows.forms.usercontrol(vs.71).aspx (http://msdn2.microsoft.com/en-us/library/system.windows.forms.usercontrol(vs.71).aspx) http://msdn2.microsoft.com/en-us/library/Aa984070(VS.71).aspx (http://msdn2.microsoft.com/en-us/library/Aa984070(VS.71).aspx) http://msdn2.microsoft.com/en-us/library/Aa984216(VS.71).aspx (http://msdn2.microsoft.com/en-us/library/Aa984216(VS.71).aspx) http://msdn2.microsoft.com/en-us/library/Aa984079(VS.71).aspx (http://msdn2.microsoft.com/en-us/library/Aa984079(VS.71).aspx) APPLIES TO
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
