• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 311
  • Last Modified:

User Controls in winforms project disappear

We have a multi project vb.net winforms solution under Visual Source Safe 2005.
One project was the UserControl library. We had many issues with every usercontrol disappearing on every form so we moved the usercontrols into the project that contains the forms.
Now one form still loses controls. Other forms do not.
Each developer has been losing the list of controls from the "My User Controls" tab of the toolbox. If we open a usercontrol in design view and save it, it reappears in the toolbox.
Does anyone know what is going on?
0
seinc
Asked:
seinc
  • 2
1 Solution
 
Bob LearnedCommented:
Did you try adding the item to ToolBox manually, and not depend on the IDE to keep track of "My User Controls".  When you do it that way, you can turn off this setting:

Tools | Options | Windows Form Designer | AutoToolboxPopulate

Bob
0
 
seincAuthor Commented:
When the controls were a separate project, I did add them manually. Now that they are in the same assembly as the forms, I don't know if that's possible.
0
 
Bob LearnedCommented:
You can add any control from any assembly to the ToolBox.

Bob
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now