- 博客(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
446
转载 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
879
转载 后台分页工具类(.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
212
转载 FlexPaper的加载完成事件的使用
var fp = $('#documentViewer').FlexPaperViewer( { config: { SwfFile: '@ViewBag.swfPath', ...
2016-04-02 13:35:00
243
转载 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
1143
转载 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
100
转载 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
155
转载 winform中真正的透明label
winform中的透明都是假透明,只是将背景色设置为父级容器的背景色。所以从网上找到这个真正透明的label。 1 public partial class transparentLabel : UserControl 2 { 3 public transparentLabel() 4 { 5 ...
2015-05-01 11:11:00
517
转载 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
367
转载 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
99
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人