Added a component to a C # project (project menu-> add-> component). Now I have changed my mind and want a form with the same name instead. The situation is a little more complicated with the use of the Visual SourceSafe version control system. The studio has created two files foo.cs and foo.Designer.cs Is there a way to convert the component module into a form, so that you can work with it as if it was always a form?

  • if a component is meant as UserControl , then in principle it is enough to change the class from which we inherit, since Form , and UserControl inherited from ContainerControl , correct if I am mistaken. If right, I will transfer to the answer. - rdorn
  • 2
    @Alexey, it works, thanks. Mark your comment as an answer. - 4per
  • @rdorn, no - Component was meant - 4per
  • one
    VSS - outdated crap. Switch to SVN or GIT. - Pavel Mayorov

1 answer 1

What prevents to remove a component and add a form with the same name? From the point of view of hard currency, the files foo.cs and foo.Designer.cs will simply be completely rewritten.

  • In fact, in VSS, the deleted file is deleted permanently, EMNIP. - Pavel Mayorov
  • But it is not about that. Actually, this is exactly what plays into the hands of this situation - Alexey