随笔分类 - C#技术
技术汇总
    
摘要:using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Xml.Serialization; using NPOI.HSSF
        阅读全文
                
摘要:public void GetPros() { UserInfo userInfo = new UserInfo(); userInfo.ID = 1; userInfo.Name = "jay"; foreach (System.Reflection.PropertyInfo p in userI
        阅读全文
                
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.
        阅读全文
                
摘要:1.将采用递归的方式生成窗体菜单,并且添加其事件响应 2.调用代码
        阅读全文
                
摘要://第一步:清除之前的数据 this.rptView.LocalReport.DataSources.Clear(); //第二步:指定报表路径 this.rptView.LocalReport.ReportPath = "Report2.rdlc"; //第三步:构造新的DataTable DataTable dt = new DataTable("DataTable1"...
        阅读全文
                
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; using System.Data; using System.IO; using System.Collections; using System.Threading; using Att_Auto_Tra...
        阅读全文
                
摘要:定位行: 1.BindingSource.MoveLast(); 2.dataGridView1.FirstDisplayedScrollingRowIndex = dataGridView1.Rows. Count-1; 定位单元格: 1.dataGridView1.FirstDisplayedC
        阅读全文
                
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using System.Data.OleDb; using Microsoft.Office.Interop.Excel; using System.Xml; using System....
        阅读全文
                
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using System.Data.OleDb; using Microsoft.Office.Interop.Excel; namespace ConsoleApplication1 ...
        阅读全文
                
摘要:// 源程序 using System; using System.Collections.Generic; using Syste...
        阅读全文
                
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using System.Data.OleDb; using Microsoft.Offi
        阅读全文
                
摘要://序列化 public void Serialize(Book book) { using (FileStream fs = new FileStream(strFile, FileMode.Create)) /...
        阅读全文
                
摘要:将Excel数据提取出来放到二维数组中:
        阅读全文
                
摘要:Ctrl+E,D 格式化全部代码 Ctrl+E,F 格式化选中的代码 CTRL + SHIFT + B生成解决方案 CTRL + F7 生成编译 CTRL + O 打开文件 CTRL + SHIFT + O打开项目 CTRL + SHIFT + C显示类视图窗口 F4 显示属性窗口 SHIFT + 
        阅读全文
                
摘要:过滤DataSet/DataTable的数据 方法一: ds.Tables[0].DefaultView.RowFilter = "name ='"+textBox1.Text+"'"; DataTable dt = ds.Tables[0].DefaultView.ToTable(); dataG
        阅读全文
                
摘要:让开发者方便地生成数据层填充代码 效果:
        阅读全文
                
摘要:private void button1_Click(object sender, EventArgs e) { Dictionary List = new Dictionary(); List.Add("1", "A"); List.Add("2", "B"); List.Add("3", "C...
        阅读全文
                
摘要:对于MS Chart当鼠标移动到数据点时或鼠标点击数据点时显示其点的值(X,Y)值
        阅读全文
                
摘要:StreamReader sr = new StreamReader(Directory.GetCurrentDirectory() + "\\test.txt") string line; while ((line = sr.ReadLine()) != null) { Console.Write
        阅读全文
                
 
                    
                
 浙公网安备 33010602011771号
浙公网安备 33010602011771号