04 2015 档案

摘要:Compare 比较两个指定的 System.String 对象,并返回一个整数,指示二者在排序顺序中的相对位置。返回一个 32 位带符号整数,指示两个比较数之间的词法关系。值条件小于零strA 小于 strB。零strA 等于 strB。大于零strA 大于 strB。CompareOrdinal... 阅读全文
posted @ 2015-04-29 16:30 GladCoder 阅读(323) 评论(0) 推荐(0)
摘要:回调(callback)函数是Windows编程的一个重要部分。如果具备C或C++编程北京,应该就曾在许多Windows API中使用过回调。Visual Basic 添加了AddressOf关键字后,开发人员就可以利用以前一度受到限制的API了。回调函数实际上是方法调用的指针,也称为函数指针,... 阅读全文
posted @ 2015-04-29 14:19 GladCoder 阅读(224) 评论(0) 推荐(0)
摘要:1 using System; 2 using System.Windows.Forms; 3 4 namespace DemoCore 5 { 6 public partial class Recursion : Form 7 { 8 public Recurs... 阅读全文
posted @ 2015-04-28 15:38 GladCoder 阅读(201) 评论(0) 推荐(0)
摘要://Jack的账户信息 账号、余额、姓名、年龄 PersonAccount Jack = new PersonAccount("201506", 2000, "Jack", 20); //Tom的账户信息 PersonAccoun... 阅读全文
posted @ 2015-04-24 13:16 GladCoder 阅读(1156) 评论(0) 推荐(0)
摘要:BackgroundWorker是一个在System.ComponentModel命名空间下的帮助类,用于管理工作线程。它提供了以下几个重要的特性:1)“cancel”标记,可以在不使用Abort的情况下给工作线程打信号终止工作线程(调用CancelAsync方法)。2)提供报告进度、完成度和退出的... 阅读全文
posted @ 2015-04-22 14:42 GladCoder 阅读(198) 评论(0) 推荐(0)
摘要:首先新建一个XtraReport类。根据需要设计报表页面布局;子报表需要添加DetailReport布局设计完毕后,写代码绑定数据;using System;using System.Drawing;using System.Collections;using System.ComponentMod... 阅读全文
posted @ 2015-04-22 13:15 GladCoder 阅读(4891) 评论(1) 推荐(0)
摘要:RepositoryItemMemoEdit repoMemo = new RepositoryItemMemoEdit(); repoMemo.WordWrap = true; repoMemo.AutoHeight = true; this.gridControl1.RepositoryI... 阅读全文
posted @ 2015-04-22 13:11 GladCoder 阅读(1364) 评论(0) 推荐(0)
摘要:USE WSS_Content SELECT * FROM dbo.utTable32 WHERE DB0461A IN (SELECT DB0461A FROM dbo.utTable32 WHERE ID IN('1','2','2'))---Row_NUMBER() OVER()SELECT ... 阅读全文
posted @ 2015-04-22 13:08 GladCoder 阅读(292) 评论(0) 推荐(0)
摘要:printPreviewControl1通常与printDocument1控件配合使用,利用printPreviewControl1的属性Document与一个printDocument1绑定,即(this.printPreviewControl1.Document = this.printDocu... 阅读全文
posted @ 2015-04-22 13:01 GladCoder 阅读(4390) 评论(0) 推荐(0)
摘要:1 private void button1_Click(object sender, EventArgs e) 2 { 3 //...处理事件 4 for (int i = 0; i < 5; i++) 5 ... 阅读全文
posted @ 2015-04-22 11:40 GladCoder 阅读(274) 评论(0) 推荐(0)