上一页 1 ··· 41 42 43 44 45 46 47 48 49 ··· 69 下一页

2019年1月1日

摘要: 实现效果: 知识运用: DataGridView控件公共属性DefaultCellStyle的WrapMode属性 public DataGridViewTriState WrapMode { get;set } 实现代码: 阅读全文

posted @ 2019-01-01 12:19 努力成长静待花开 阅读(385) 评论(0) 推荐(0)

摘要: 实现效果: 知识运用: DataGridView控件的公共事件CellValidating //将System.Windows.Forms.DataGridViewCellValidatingEventArgs类的Cancel属性设为true 将阻止光标离开单元格 和CellEndEdit来处理 实 阅读全文

posted @ 2019-01-01 12:04 努力成长静待花开 阅读(883) 评论(0) 推荐(0)

2018年12月31日

摘要: 实现效果: 知识运用: DataGridViewCellStyle类的Alignment属性 //获取或设置DataGridView单元格内的单元格内容的位置 public DataGridViewContentAlignment Alignment {get; set;} // 设置控件列的Def 阅读全文

posted @ 2018-12-31 23:49 努力成长静待花开 阅读(2087) 评论(0) 推荐(0)

摘要: 实现效果: 知识运用: DataGridViewCellStyle类的Format属性 //获取或设置应用于DataGridView单元格的文本内容的格式字符串 public string Format { get;set; } // 通过设置控件的列的DefaultCellStyle.Format 阅读全文

posted @ 2018-12-31 20:25 努力成长静待花开 阅读(3232) 评论(0) 推荐(0)

摘要: 实现效果: 知识运用: DataGridView控件的公共属性DefaultCellStyle的Font属性 public Font Font {get;set;} //获取或设置应用与DataGridView单元格的文本的字体 实现代码: 阅读全文

posted @ 2018-12-31 19:49 努力成长静待花开 阅读(3180) 评论(0) 推荐(0)

摘要: 实现效果: 知识运用: DataGridView控件的GridColor属性 //用来获取或设置网格线的颜色 public Color GridColor { get; set; } //属性值: Color对象或 SystemColors对象 实现代码: 阅读全文

posted @ 2018-12-31 19:25 努力成长静待花开 阅读(268) 评论(0) 推荐(0)

摘要: 实现效果; 知识运用: 窗体的KeyPreview属性 //在将键事件传递到具有焦点的控件之前 窗体是否接受此键事件 public bool KeyPreview {get;set;} SelectNextControl方法 //用于激活下一控件 public bool SelectNextCont 阅读全文

posted @ 2018-12-31 13:56 努力成长静待花开 阅读(250) 评论(0) 推荐(0)

摘要: 实现效果: 知识运用: Control类的Tag属性 //获取或设置包含 有关控件的数据的对象 public object Tag {get;set;} 实现代码: 阅读全文

posted @ 2018-12-31 12:22 努力成长静待花开 阅读(703) 评论(0) 推荐(0)

摘要: 实现效果: 知识运用: TextBox控件的Enter事件 //当该控件处于当前窗体的活动控件时发生 Leave事件 //当该控件不处于当前窗体的活动控件时发生 以及KeyDown事件 //在控件有焦点的情况下按下键时 和自定义方法Clear_Control //遍历指定控件 实现代码: 阅读全文

posted @ 2018-12-31 12:13 努力成长静待花开 阅读(240) 评论(0) 推荐(0)

2018年12月30日

摘要: 实现效果: 知识运用: Button控件的Visible属性 Form窗体的Show方法和Hide方法 实现代码: 阅读全文

posted @ 2018-12-30 20:37 努力成长静待花开 阅读(198) 评论(0) 推荐(0)

上一页 1 ··· 41 42 43 44 45 46 47 48 49 ··· 69 下一页