摘要:
View Code /* *Made By Anby * 2012-10.31 * Good Luck!~ * Excel转换jpg * 记得引用Microsoft.Office.Interop.Excel; */using System.Drawing;using System.Linq;using System.Windows.Forms;using EXCEL = Microsoft.Office.Interop.Excel;using System;using System.Diagnostics;using System.IO;namespace ExcelConvertHelpe. 阅读全文
摘要:
View Code using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 事件DEMO{ // 警报器 public class Heater { private int temperature; public string type = "RealFire 001"; // 添加型号作为演示 public string area = "China Xian"; // 添加产地作... 阅读全文
摘要:
举个简单的流程1.先定义一个委托,不过很多时候不需要,可以直接使用系统的。public delegate void SampleEventHandler(object sender, SampleEventArgs e);2.在类中定义事件。public event SampleEventHandler SampleEvent;要了解深刻一点,你可以查看一下多播委托(Multicast Delegate)3.执行事件:private OnSampleEventHandler(object sender, SampleEventArgs e) { if (SampleEvent != nu... 阅读全文
摘要:
View Code using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using EXCEL= Microsoft.Office.Interop.Excel;using System.Diagnostics;namespace excel转图片{ public partial class F... 阅读全文
摘要:
记得打开奇偶校验using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.IO.Ports;using System.Threading;namespace 串口通信_控件_{public partial class Form1 : Form{public Form1(){Ini 阅读全文
摘要:
int n = 100,max = 200,min=100; Random random = new Random(); List<int> list = new List<int>(100); for (int i = 0; i < n; i++) { //若max-min<n将进入无限循环 int temp = random.Next(min, max); if (list.Contains(temp) == t... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using 人事考勤系统;using System.Collections;using AnbySQL;namespace 人事考勤系统{ public partial class Form1 : Form { publi... 阅读全文
摘要:
View Code using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace Ienumerable{ class Program { static void Main(string[] args) { MyList<int> mylist = new MyList<int>(); for (int x = 0; x < 5; x++) ... 阅读全文
摘要:
找了好多,都是不带datagridview的。所以自己写类一个。。。源码如下View Code using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data.Sql;namespace 分页控件{ /*Made by Anby * 2012-10-18 ... 阅读全文
摘要:
View Code using System;using System.Collections.Generic;using System.Text;using System.Data;//Download by http://www.codefans.netnamespace PaginationFunction{ class page { private int RowsPerPage = 5;//表示ItemsPerPage属性的默认值 private DataSet TempSet = new DataSet();//定义一个存储数据的对象 ... 阅读全文