当前位置:编程学习 > C#/ASP.NET >>

C# Form上所以控件都聚集在画面左上角

C# Form程序,画面所以项目都聚集在画面左上角,大小什么的都变化了。看了有可疑的地方肯能是用了【ComponentResourceManager】这个的原因

private void InitializeComponent()
{
 this.components = new System.ComponentModel.Container();
 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SKMMF0201));
.......................
.......................

 // 
 // txtGenzaiKaisu
 // 
 this.txtGenzaiKaisu.BackColor = System.Drawing.SystemColors.Control;
 resources.ApplyResources(this.txtGenzaiKaisu, "txtGenzaiKaisu");

.......................
.......................
如此等等画所以的控件都是放在了resources中。

请大神们告诉个原因和解决方法,谢谢。 控件 c# 位置
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,