![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
winform
easybjy
这个作者很懒,什么都没留下…
展开
-
设计器是如何确定哪些属性会在Designer.cs中生成的?
之所以要解决这个问题, 是因为, 我的自定义组件代码是这样写的: private int _radius; public int Radius { get { return this._radius; } set { this._radius = value; } }Radius值我将在构造函数里面, 从资源文件中获取,同时, 我想_radius的值也就有了。 当我把自原创 2012-07-27 18:49:29 · 1324 阅读 · 0 评论 -
Cannot modify the return value of 'System...ClientRectangle' because it is not a variable
最近做一个换肤的程序, 在修改窗体的ClientRectangle.Height值的时候出现了题目这样的错误。 后来发现,把鼠标放到ClientRectangle.Height的Height上时, 显示可以进行Get和Set 但 ClientRectangle本身的定义里面只支持Get操作, 而没有Set操作, 它不是一个变量, 是Control类的一个公共属性。 然后发现Control类原创 2012-07-28 09:11:55 · 1006 阅读 · 0 评论