简体   繁体   English

Visual Studio 2017-Form1中的内容也在Form2中

[英]Visual Studio 2017 - Content from Form1 is also in Form2

I have a problem. 我有个问题。 The problem is, that when i make a second form inside of my project in Visual Studio 2017, the content from Form 1 will be in the 2nd form, interactible on build, but not movable or deletable in the editor. 问题是,当我在Visual Studio 2017中的项目中创建第二个表单时,表单1中的内容将为第二个表单,在构建时可交互,但在编辑器中不可移动或删除。 I don't know what to do to fix this. 我不知道该怎么做才能解决此问题。

If you know a way to fix this, let me know please. 如果您知道解决此问题的方法,请告诉我。 It really helps me out with stuff like this. 它确实可以帮助我解决此类问题。

This is a bug of Visual Studio. 这是Visual Studio的错误。 You should try cleaning the solution (from here : 您应该尝试清洁溶液(从这里开始

  1. In Solution Explorer , choose or open the solution. 解决方案资源管理器中 ,选择或打开解决方案。
  2. On the menu bar, choose Build and then choose Clean Solution to delete any intermediate and output files. 在菜单栏上,选择“生成”,然后选择“ 清理解决方案”以删除所有中间文件和输出文件。 With only the project and component files left, new instances of the intermediate and output files can then be built. 仅剩下项目和组件文件,然后就可以构建中间文件和输出文件的新实例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM