自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

转载 立即执行的System.Timers.Timer

System.Timers.Timer的Start方法或者设置Enabled=True都不会立即执行Elapsed事件,而是会等设置的Interval这么长时间之后才会执行。解决办法:先设置Interval为1,然后在Elapsed事件里面重新设置想要的Interval,代码如下: 1 static System.Timers.Timer zTimer; 2 ...

2016-11-07 14:58:00 360

转载 sqlserver多行转一行字符串(解决for xml path 超过2033截断问题)

1、t-sql:经过测试此方法在数据量较大时候效率特别低。2、for xml path:此方法效率可以但是需要注意利用stuff函数将生成的xml文件转换为字符串,否则用sqldatereader或者SqlDataAdapter读取数据只能读取2033个字符。例如:有如下test表有数据Id Name1 a2 b3 c4 d当使用:SELECT','+IdFROMdbo...

2016-10-09 17:01:00 798

转载 后台分页工具类(.net)

下面是工具类。 1 publicclassPagingHelper<T>where T :new() 2 { 3 privateint_PageIndex=1; 4 privateint_PageSize=10; 5 privateint_Total=0; 6 privateint_ShowNum=5; 7 privat...

2016-07-06 11:36:00 169

转载 FlexPaper的加载完成事件的使用

var fp = $('#documentViewer').FlexPaperViewer( { config: { SwfFile: '@ViewBag.swfPath', ...

2016-04-02 13:35:00 211

转载 NPOI操作excel(03和07)

使用XSSFWorkbook,在workbook = new XSSFWorkbook(stream);这句代码一直出现EOF in header。解决办法在这句代码前面加上stream.Position = 0;就行了转载于:https://www.cnblogs.com/strongZZ/p/5062066.html...

2015-12-20 22:25:00 1062

转载 android 图片拖动

代码如下: 1 private ImageView mShowImage = (ImageView) findViewById(R.id.mShowImage); 2 3 mShowImage.setOnTouchListener(new View.OnTouchListener() { 4 int startX = 0,s...

2015-08-31 15:41:00 72

转载 MVC+EasyUI中datagrid分页(后台)

public JsonResult ModelList_Json() { int pagesize = int.Parse(Request["rows"]);//获取每页显示多少条记录 int pagenum = int.Parse(Request["page"]);//获取当前页码 Li...

2015-06-09 16:25:00 116

转载 winform中真正的透明label

winform中的透明都是假透明,只是将背景色设置为父级容器的背景色。所以从网上找到这个真正透明的label。 1 public partial class transparentLabel : UserControl 2 { 3 public transparentLabel() 4 { 5 ...

2015-05-01 11:11:00 389

转载 winform重绘窗体成圆角(网上借鉴)

winform做圆角窗体: 1 //重绘窗体为圆角 2 private void frmMain_Paint(object sender, PaintEventArgs e) 3 { 4 #region 5 6 List<Point> list = new List&...

2015-05-01 11:05:00 324

转载 linq to xml(C#)

1 using System; 2 using System.Collections.Generic; 3 4 //用KVP来代替KeyValuePair<string,string>;相当于C中的typedef 5 using KVP = System.Collections.Generic.KeyValuePair<string,s...

2015-05-01 10:57:00 84

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除