积极答复者
控件不显示的问题有人遇到没

问题
答案
-
你做过什么操作吗?
比如删除原来的Form然后重新生成Form?
建议:
1)重新编译整个项目后运行。
2)如1方法不行,重新创建一个Form,然后拷贝对应的自生成代码以及控件到新窗体,然后重新编译看看。
If you think one reply solves your problem, please mark it as An Answer, if you think someone's reply helps you, please mark it as a Proposed Answer
Help by clicking:
Click here to donate your rice to the poor
Click to Donate
Click to feed Dogs & Cats- 已标记为答案 Mclovin 2013年3月12日 4:33
全部回复
-
你做过什么操作吗?
比如删除原来的Form然后重新生成Form?
建议:
1)重新编译整个项目后运行。
2)如1方法不行,重新创建一个Form,然后拷贝对应的自生成代码以及控件到新窗体,然后重新编译看看。
If you think one reply solves your problem, please mark it as An Answer, if you think someone's reply helps you, please mark it as a Proposed Answer
Help by clicking:
Click here to donate your rice to the poor
Click to Donate
Click to feed Dogs & Cats- 已标记为答案 Mclovin 2013年3月12日 4:33
-
你做过什么操作吗?
比如删除原来的Form然后重新生成Form?
建议:
1)重新编译整个项目后运行。
2)如1方法不行,重新创建一个Form,然后拷贝对应的自生成代码以及控件到新窗体,然后重新编译看看。
If you think one reply solves your problem, please mark it as An Answer, if you think someone's reply helps you, please mark it as a Proposed Answer
Help by clicking:
Click here to donate your rice to the poor
Click to Donate
Click to feed Dogs & Cats我重新又查找了一遍design代码,发现还是有问题的
//
// statusStrip1
//
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripStatusLabel1,
this.toolStripStatusLabel2,//这地方是我修改好了的,原来这里没有label2,所以不显示
this.toolStripDropDownButton1,
this.toolStripStatusLabel3,
this.toolStripStatusLabel4});
this.statusStrip1.Location = new System.Drawing.Point(0, 712);
this.statusStrip1.Name = "statusStrip1";
this.statusStrip1.Size = new System.Drawing.Size(1016, 22);
this.statusStrip1.TabIndex = 0;
this.statusStrip1.Text = "statusStrip1";其实因为是在statusstrip中的控件,在statusstrip声明的时候声明其中的子控件,原来不知道为什么(可能就是我的删除操作)把子控件的声明弄没了,下面的代码中虽然还有子控件的代码,但是在statusstrip中没有声明所以就没有显示。