![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
学习笔记
文章平均质量分 52
dieindark
这个作者很懒,什么都没留下…
展开
-
C#里巧用DateTime预设一些可选的日期范围(如本年度、本季度、本月等)(
//大家在做报表或查询的时候都会有给用户预设一些可选的日期范围//如本年度销售额、本季度利润、本月新增客户//C#里内置的DateTime基本上都可以实现这些功能,巧用DateTime会使你处理这些事来变轻松多了//今天DateTime.Now.Date.ToShortDateString();//昨天,就是今天的日期减一DateTime.Now.AddDays(-1).ToShortDateSt转载 2009-01-09 16:17:00 · 387 阅读 · 0 评论 -
字符串处理
Html = Html.Substring(Html.IndexOf("") + 3);Html = Html.Substring(0, Html.IndexOf("));string[] arry = now.Split(new string[] { "" }, StringSplitOptions.RemoveEmptyEntries);原创 2009-01-10 10:02:00 · 378 阅读 · 0 评论 -
字符串string和内存流MemoryStream及比特数组byte[]互转比较
字符串string和内存流MemoryStream及比特数组byte[]互转比较定义string变量为str,内存流变量为ms,比特数组为bt1.字符串转比特数组(1)byte[] bt=System.Text.Encoding.Default.GetBytes("字符串");(2)byte[] bt=Convert.FromBase64String("字符串");2.字符串转流(1)原创 2009-01-08 23:47:00 · 955 阅读 · 0 评论 -
timer类的用法
关于C#中timer类 在C#里关于定时器类就有3个 1.定义在System.Windows.Forms里 2.定义在System.Threading.Timer类里 3.定义在System.Timers.Timer类里 System.Windows.Forms.Timer是应用于WinForm中的,它是通过Windows消息机制实现的,类似于VB或Delphi中的Timer控转载 2009-01-11 11:35:00 · 560 阅读 · 0 评论 -
C# 启用双缓存,避免ListView控件加载数据时闪烁
可以用以下方法,已经测试: public class CustomListView : ListView { public CustomListView() { SetStyle(ControlStyles.DoubleBuffer |原创 2009-01-14 14:42:00 · 1665 阅读 · 0 评论 -
C#中运行命令行截取输出流的例子
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Diagnost转载 2008-12-27 19:30:00 · 723 阅读 · 0 评论 -
tea qq消息
<br /> 代码 1 /// <summary><br /> 2 /// 加密解密QQ消息包的工具类.<br /> 3 /// </summary><br /> 4 public static class QQCrypter<br /> 5 {<br /> 6 private static Random Rnd = new Random();<br /> 7 private static void code(byte[]转载 2010-08-28 02:27:00 · 586 阅读 · 0 评论 -
TEA, QQ消息
代码转载 2010-08-28 02:21:00 · 720 阅读 · 0 评论 -
tea qq消息
<br /> 代码 1 /// <summary><br /> 2 /// 加密解密QQ消息包的工具类.<br /> 3 /// </summary><br /> 4 public static class QQCrypter<br /> 5 {<br /> 6 private static Random Rnd = new Random();<br /> 7 private static void code(byte[]转载 2010-08-28 02:30:00 · 457 阅读 · 0 评论