摘要:
在控件有焦点的情况下按下键时发生。 键事件按下列顺序发生: KeyDown KeyPress KeyUp 非字符键不会引发 KeyPress 事件;但非字符键却可以引发 KeyDown 和 KeyUp 事件。 使用 KeyChar 属性在运行时对键击进行取样,并且使用或修改公共键击的子集。 若要仅在窗体级别处理键盘事件而不允许其他控件接收键盘事件,请将窗体的 KeyPress 事件处理方法中的... 阅读全文
阅读排行榜
泛型赋值
2012-08-03 17:12 by 墨泣, 416 阅读, 收藏,
摘要:
public class ColumnModel { public string Column0 { get; set; } public string Column1 { get; set; } public string Column2 { get; set; } public string Column3 { get; ... 阅读全文
datagridview位置
2011-09-08 18:01 by 墨泣, 332 阅读, 收藏,
摘要:
首先取得DataGridView的坐标位置: int dgvX = dataGridView1.Location.X; int dgvY = dataGridView1.Location.Y; 然后取得选中单元格的坐标在DataGridView中的坐标位置: int cellX = dataGridView1.GetCellDisplayRectangle(ColumnIndex,RowIndex... 阅读全文
TOString()
2011-04-14 14:17 by 墨泣, 213 阅读, 收藏,
摘要:
using System;using System.Globalization; public class MainClass { public static void Main(string[] args) { DateTime dt = DateTime.Now; String[] format = { "d", "D", "f", "F", "g", "G", "m", "r", "s", "t&qu 阅读全文
浙公网安备 33010602011771号