随笔分类 -  C#

摘要:详情见dome 阅读全文
posted @ 2018-01-02 14:23 csdnbbs 阅读(1602) 评论(1) 推荐(0)
摘要:1.安装URL REWRITE2 "伪静态模块" 2. 阅读全文
posted @ 2017-05-15 15:28 csdnbbs 阅读(941) 评论(0) 推荐(0)
摘要:1.解析密钥 2.导出私钥字符串格式 3.不可解密的方式加密 4.普通的加密方式 5.普通的解密方式 阅读全文
posted @ 2016-07-06 11:46 csdnbbs 阅读(542) 评论(0) 推荐(1)
摘要:string responseStr = null; string boundary = "----------------------" + DateTime.Now.Ticks.ToString("x"); byte[] boundarybytes... 阅读全文
posted @ 2014-11-19 16:40 csdnbbs 阅读(326) 评论(0) 推荐(0)
摘要:下载CLR Profiler:http://search.microsoft.com/en-us/DownloadResults.aspx?q=clr%20profiler转载来源:http://www.cnblogs.com/zhaoblogs/archive/2012/11/02/2752015.html 阅读全文
posted @ 2013-05-05 19:17 csdnbbs 阅读(168) 评论(0) 推荐(0)
摘要:/// <summary> /// SFTP文件上传下载 /// </summary> public class SFtp { /// <summary> /// http://www.example-code.com/csharp/sftp_readDir.asp /// </summary> Chilkat.SFtp sftp = new Chilkat.SFtp(); /// <summary> /// 连接 /// </summary> /// <... 阅读全文
posted @ 2013-04-09 13:52 csdnbbs 阅读(1358) 评论(0) 推荐(0)
摘要:/// <summary> /// Excel导出写入 /// </summary> public class ExcelHelper { /// <summary> /// 当前行号【从0开始】 /// </summary> public int rowIndex = 0; /// <summary> /// Excel实例 /// </summary> private Workbook book = null; /// <summary>... 阅读全文
posted @ 2013-04-09 13:50 csdnbbs 阅读(991) 评论(0) 推荐(0)
摘要:public class SharpZipHelper { /// <summary> /// 压缩率:0-9 /// </summary> private int compressionLevel = 5; private byte[] buffer = new byte[2048]; /// <summary> /// 压缩文件 /// </summary> /// <param name="fileToZip">要压缩的文件路径</param... 阅读全文
posted @ 2013-04-03 11:34 csdnbbs 阅读(395) 评论(0) 推荐(1)
摘要://准备序化列对象 XmlSerializer xs = new XmlSerializer(obj.GetType()); MemoryStream ms = new MemoryStream(); //设置序序化XML格式 XmlWriterSettings xws = new XmlWriterSettings(); xws.Indent = true; xws.OmitXml... 阅读全文
posted @ 2013-03-29 17:01 csdnbbs 阅读(7182) 评论(2) 推荐(1)
摘要://写windows日志 if (!System.Diagnostics.EventLog.SourceExists("项目1")) { System.Diagnostics.EventLog.CreateEventSource("项目1", "mylog"); } System.Diagnostics.EventLog eventLog = new System.... 阅读全文
posted @ 2013-01-22 14:42 csdnbbs 阅读(242) 评论(0) 推荐(0)
摘要:1.新建类库,添加引用:System.EnterpriseServices;2.继承ServicedComponent/// <summary> /// Com+ 事件处理 /// </summary> [Transaction(TransactionOption.Required)] public class clsES:ServicedComponent { public void dbAccess(int pid,float nScore) { System.Data.SqlClient.SqlConnection conn; ... 阅读全文
posted @ 2013-01-22 13:51 csdnbbs 阅读(154) 评论(0) 推荐(0)
摘要://需要添加引用 Microsoft.Office.Interop.Word public class WordHelp { Microsoft.Office.Interop.Word.Application oWordApp; Microsoft.Office.Interop.Word.Document oWordDoc; object oMissing = System.Reflection.Missing.Value; /// <summary> /// 加载文档 /// </summary> ... 阅读全文
posted @ 2012-12-11 10:11 csdnbbs 阅读(153) 评论(0) 推荐(0)
摘要:private void gridView1_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e) { e.Appearance.TextOptions.HAlignment=DevExpress.Utils.HorzAlignment.Far; if (e.Info.IsRowIndicator) { ... 阅读全文
posted @ 2012-12-11 10:04 csdnbbs 阅读(1264) 评论(0) 推荐(0)
摘要://需要有调用窗体注册:KeyDown事件且属性:KeyPreview=true #region 条件处理 BarCodeHook barCodeHook = null; private void MIE_MainFrom_KeyDown(object sender, KeyEventArgs e) { if (barCodeHook == null) { barCodeHook = new BarCodeHook(); barCodeHook... 阅读全文
posted @ 2012-12-06 13:49 csdnbbs