摘要:Abs(number) 返回绝对值。 Array(arglist) 创建一个数组。 Asc(string) 返回字符串第一个字符的ANSI码。 Atn(number) 返回反正弦值。 CBool (expression) 转换成Boolean数据类型变量。 CByte (expression) 转换成Byte数据类型变量。 CCur (expression) 转换成Currency数据类型变量。 ...
阅读全文
摘要://在按钮事件里的测试 if (textBox1.Text.Length <= 4) { errorProvider1.BlinkRate = 300; //设置图标的闪烁频率,值越小速度越快 //.AlwaysBlink设置图标总是闪烁。.BlinkIfDifferentEr...
阅读全文
摘要://用foreach实现CheckBox的全部选定 foreach(Control co in this.Controls) //co是窗体的一个控件 { if(co is CheckBox) //判断如果co是CheckBox ...
阅读全文
摘要://将下面代码写在窗体加载事件 //用foreach遍历颜色 //ConsoleColor指定定义控制台前景色和背景色的常数 foreach (string color in Enum.GetNames(typeof(ConsoleColor))) { //Foregro...
阅读全文
摘要://矩形帮定cb与网格方法 public void f1(object sender, EventArgs e) { this.comboBox1.Text = dataGridView1.CurrentCell.Value.ToString(); Rectangle R = dataGridView1.GetCell...
阅读全文
摘要:private void textBox2_TextChanged( object sender, EventArgs e ) { // 文本框即输即选方法一 //this.textBox2.SelectionStart = 0; 可省 this.textBox2.SelectAll(); }...
阅读全文