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?
1 answer
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
|
UserControl, then in principle it is enough to change the class from which we inherit, sinceForm, andUserControlinherited fromContainerControl, correct if I am mistaken. If right, I will transfer to the answer. - rdorn