When looking at the form designer with the same name as your user control, usercontrol will not appear in the toolbar. In fact, it is located on the toolbar and is displayed, but is grayed out using the "Show all" checkbox on the toolbar. Although the form and usercontrol have the same name, they are in different namespaces.
Can someone explain what a conflict is or is it a bug in Visual Studio 2010?
Playback (C #):
- Create a new Winforms project
- Create a folder in the project called "Forms"
- Create a folder in the project called "UserControls"
- In the "UserControls" section, add the following new UserControls "AppleDetail" and "OrangeDetail"
- In the Forms section, add the following new forms: Test and OrangeDetail
- Build a project
- Open the form designer for "Test", both user controls should be visible in the toolbar.
- Open the form designer for "OrangeDetail", only the AppleDetail user control will be visible / enabled in the toolbar.
source
share