无法在C#窗体中进行更改? [英] Unable to do changes in C# windows form ?

查看:70
本文介绍了无法在C#窗体中进行更改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个项目并在c#中执行得很好,经过一段时间甚至我们添加任何按钮或对该项目的任何更改,这些更改在输出表单中都不可见,但是当停止执行时,所有代码和按钮都可见我现在这样做



我尝试了什么:



i试过几个天但我无法得到正确的方法

i created a project and executed well in c#, after some time even we add any buttons or any changes to that project, the changes are not visible in output form , but when stop executing all the code and buttons are visible what you i do now

What I have tried:

i tried in several days but i cant get the correct way

推荐答案

我们不能具体,但首先要看基础知识(如果这些太基础,我道歉 - 但是我很抱歉我不知道你的技能水平):

1)编译没有任何错误吗?如果没有,则不会生成可执行文件,因此您将看不到任何更改。

2)您是否正在执行正确的EXE文件?如果您直接从Windows执行它,那么请检查您正在执行的文件属性的属性,并确保它是最新的:如果您的桌面上有一个快捷方式,那么您正在构建调试版本相反,你将再次看不到任何变化。

3)你在执行正确的项目吗?解决方案文件可以包含许多项目,但只有一个是启动项目。如果您正在编辑不同的项目文件,那么您可能看不到可执行文件中的更改。

4)清理所有项目,并进行完全重建。然后在调试器中运行它,看看会发生什么。你是否可以在Form.Load事件处理程序中点击断点? Form.Shown处理程序怎么样?



抱歉,我们不能说做这个,它会解决它:我们无法访问你的硬盘,我们无法看到你的屏幕,我们无法读懂你的想法 - 所以你将不得不为我们做这个腿部工作!
We can't be specific, but start by looking at the basics (and I apologize if these are too basic - but I have no idea of your skill level):
1) Does it compile without any errors? If it doesn't, then an executable will not be generated, so you will see no changes.
2) Are you executing the right EXE file? If you are executing it directly from windows, then check the properties of the properties of the file you are executing, and make sure it's up to date: if you have a shortcut on your desktop to the release version but you are building the debug version instead, you will again see no changes.
3) Are you executing the right project? A Solution file can have many projects, but only one is the Startup project. If you are editing a different projects files, then you may not see the changes in your executable.
4) Clean all projects, and do a full rebuild. Then run it in the debugger and see what happens. Do you get to hit breakpoints in your Form.Load event handler? What about the Form.Shown handler?

Sorry, but we can't say "do this and it'll fix it": we don't have access to your HDD, we can't see your screen, and we can't read your mind - so you are going to have to do all the "leg work" on this one for us!


这篇关于无法在C#窗体中进行更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆