02 2019 档案
摘要:1 Aspose.Cells.License li = new Aspose.Cells.License(); 2 li.SetLicense("Aspose.Cells.lic"); 3 Aspose.Cells.Workbook wk = new Aspose.Cells.Workbook(); 4 W...
阅读全文
摘要:C# -- 文件的压缩与解压(GZipStream) 文件的压缩与解压 需引入 System.IO.Compression; 1.C#代码(入门案例) 1 Console.WriteLine("压缩文件..............."); 2 using (FileStream fr = File.OpenRead("d:\\test.txt"...
阅读全文
摘要:private void button1_Click_1(object sender, EventArgs e) { Form2 form = new Form2(); form.FormBorderStyle = FormBorderStyle.None; form.TopLevel = false; ...
阅读全文
摘要://遍历TextBox控件 foreach (Control item in this.Controls) { if (item is TextBox) { item.Text = ""; } }
阅读全文
摘要:序列化对象 public string SerializeObject(object obj) { IFormatter formatter = new BinaryFormatter(); string result = string.Empty; using (MemoryStream stream = new MemoryStream(...
阅读全文
摘要:简单点的数据表: 实体类: using System;using System.Collections.Generic;using System.Linq;using System.Text; namespace 省市联动{ public class tblArea { public int AreaId { get; set; } public st...
阅读全文
摘要: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.Data.SqlCli...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.Data.SqlClient;using System.Configuration; namespace _001{ public static class SqlHe...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text; namespace _001{ public class tbusers { public string loginid { get; set; } public string loginpwd ...
阅读全文

浙公网安备 33010602011771号