为什么我修改后的 .NET Windows 窗体在再次运行程序后没有显示新的更改?

发布于 2024-10-03 13:46:16 字数 110 浏览 0 评论 0原文

在我的桌面应用程序中,之前我已经设计了表单并执行了十次,但后来我对表单进行了细微的更改。但即使在更改之后,当我现在运行程序时,也会显示以前创建的表单。

可能是什么问题...有人可以帮助我吗?

In my desktop application, previously I have designed the form and ten execute it but then I went for slight changes in my form.But even after changing, while I run the program now the previously created form is getting displayed.

What might be the problem...could anyone help me?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

哆兒滾 2024-10-10 13:46:16

尝试:

删除解决方案中的所有 \BIN 目录

Build->Clean project

Rebuild All

Try:

Delete all the \BIN directories in your solution

Build->Clean project

Rebuild All

卖梦商人 2024-10-10 13:46:16

另一个需要检查的地方是解决方案构建配置。

确保您的项目正在构建。
如果它没有被构建,那么您的更改将不会显示。

  1. 右键单击解决方案。
  2. 配置管理器。
  3. 验证您的项目已被选择。

Another place to check is the solution build configuration.

Make sure your project is being built.
If it is not being built, then your changes wont show up.

  1. Right click solution.
  2. Configuration Manager.
  3. Verify your project is selected.
最丧也最甜 2024-10-10 13:46:16

当您在可视化设计器中对 Form1 进行更改时,Visual Studio 将在名为 Form1.Designer.cs 的文件中找到的代码中反映这些更改,方法名为 InitializeComponent()。这是您可以检查错误的地方。

When you make changes to, say, Form1, in the visual designer, Visual Studio will reflect those in the code found in the file called Form1.Designer.cs, in the method called InitializeComponent(). That's one place you can check for errors.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文