C#应用程序无响应 [英] C# app do not respond

查看:76
本文介绍了C#应用程序无响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我在C#4.0应用程序上更改了许多属性,现在我在主窗体中添加了一些新的文本框以及代码段,但是它无法正常工作,甚至没有出现文本框.问题:可能会发生什么?"

Recently I changed a lot of properties on my C#4.0 app, now I''m adding some new Text Boxes to my main form as well as pieces of code but it is not working, the text boxes not even appear. Question: "What could be happening?"

推荐答案

选项1(最有可能):
重新安装Visual Studio.

选项2:
如果是自定义文本框-重建您的基础结构/框架.

选项3:
创建一个新项目.

问候,
克里斯

:doh:
Option 1 (Most Probably):
Reinstall Visual Studio.

Option 2:
If it''s custom textboxes - rebuild your infrastructure / framework.

Option 3:
Create a new project.

Regards,
Chris

:doh:


首先,您会看到.aspx.Designer.cs页面.
我认为没有创建textcontrol名称.所以,它不起作用..
因此,您可以将代码手动编写到designer.Cs页面.

那么它将起作用..尝试这种方式...

First you see the .aspx.Designer.cs Page.
I think there is not create the textcontrol name. so, it is not working..
So, you manually write the code to designer.Cs page.

then it will work.. try this way...

/// <summary>
  /// txtSenderId control.
  /// </summary>
  /// <remarks>
  /// Auto-generated field.
  /// To modify move field declaration from designer file to code-behind file.
  /// </remarks>
  protected global::System.Web.UI.WebControls.TextBox txtSenderId;


这篇关于C#应用程序无响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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