private void C_txt(string str){ string strname
= "D:\\" + System.DateTime.Now.ToString("yyyymmddhhmmss") + ".txt"; StreamWriter
swWordChange = n...
分类:
其他好文 时间:
2014-05-19 09:53:50
阅读次数:
188
1、当有大量数据需要计算、显示在界面或者调用sleep函数时,容易导致界面卡死,可以采用多线程加委托的方法解决using
System;using System.Collections.Generic;using System.ComponentModel;using
System.Data;usi...
分类:
编程语言 时间:
2014-05-19 09:47:53
阅读次数:
340
[System.Runtime.InteropServices.DllImport("winmm.DLL", EntryPoint = "PlaySound",
SetLastError = true)] private static extern bool PlaySound(string sz....
在做性能测试测试时候,如果被测试的系统页面很简单,并且性能很好,这样会导致压力机得tcp链接数不够而导致如下错误:HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\tcpip\Parameters\TcpTimedWaitDelay
to 30...
分类:
其他好文 时间:
2014-05-19 08:55:54
阅读次数:
322
Mac系统打开命令行终端的方法: 应用程序 --> 实用工具 -->
终端Mac系统终端查看操作系统版本号的方法:输入:#more
/System/Library/CoreServices/SystemVersion.plist.plist ProductBuildVersion ...
分类:
其他好文 时间:
2014-05-19 08:44:27
阅读次数:
254
Guid.NewGuid()System.Guid.NewGuid().ToString()全球唯一标识符 (GUID)
是一个字母数字标识符,用于指示产品的唯一性安装。在许多流行软件应用程序(例如 Web 浏览器和媒体播放器)中,都使用 GUID。GUID
的格式为“xxxxxxxx-xxxx-x...
分类:
其他好文 时间:
2014-05-19 07:41:16
阅读次数:
257
以下是一个相对简陋的扩展, 主要是针对金额显示的Textbox扩展.using
System;using System.Collections.Generic;using System.Linq;using System.Web;using
System.Web.UI.WebControls;usi...
分类:
Web程序 时间:
2014-05-19 07:34:53
阅读次数:
426
System.InvalidOperationException:
支持“XXX”上下文的模型已在数据库创建后发生更改。请考虑使用 Code First
迁移更新数据库(http://go.microsoft.com/fwlink/?LinkId=238269)。EF发布时遇到的问题(数据库初始化h...
分类:
数据库 时间:
2014-05-19 07:14:08
阅读次数:
557
using System.Xml;using System.Xml.Linq;XmlDocument
document = new XmlDocument();document.Load("SessionDef.xml");XmlNodeList
nodelist = document.Select...
分类:
其他好文 时间:
2014-05-19 07:10:10
阅读次数:
227
一、引入类型与值类型简介
值类型:直接存放于栈中,取的时候是直接取得值。值类型继承自System.ValueType。(自定义对象)
引用类型:存在于托管堆中,取的时候是从栈取该对象的地址,然后用这个地址去托管堆中取值。引用类型继承自System.Object。(int,bool,struct).....
分类:
其他好文 时间:
2014-05-17 17:58:48
阅读次数:
181