09 2012 档案

摘要:class Point { double x, y; public Point(double x, double y) { this.x = x; this.y = y; } public double X { get { return this.x; } } public double Y { get { return this.y; } } } ... 阅读全文
posted @ 2012-09-14 17:11 xiaokang088 阅读(248) 评论(0) 推荐(0) 编辑
摘要:用户名输入框:1.没有获取焦点时, 如果输入内容为空,显示Mask文本:Please input username。如果不为空,显示文本内容。2.获取焦点后, 如果是Mask文本,清除。如果不是,保留输入的内容。这种例子很多,相信大家都熟悉。public class MaskTextBox : TextBox { #region MaskText /// <summary> /// view sort style, desc arrow /// </summary> public static readonly Dep... 阅读全文
posted @ 2012-09-05 16:01 xiaokang088 阅读(4040) 评论(9) 推荐(4) 编辑