Windows Error Codes
摘要:http://www.briandunning.com/error-codes/?source=WindowsWindows Error CodesList All Error Codes| Search Errors:FileMaker Error CodesLasso Error CodesMy...
阅读全文
posted @
2014-08-22 02:23
Alan Yang
阅读(2376)
推荐(0)
Microsoft EBooks
摘要:Go pick up what you are interested Jhttp://blogs.msdn.com/b/mssmallbiz/archive/2014/07/07/largest-collection-of-free-microsoft-ebooks-ever-including-w...
阅读全文
posted @
2014-08-19 08:38
Alan Yang
阅读(170)
推荐(0)
Are C# delegates thread-safe?
摘要:http://stackoverflow.com/questions/6349125/are-c-sharp-delegates-thread-safeRegarding the invocation of the delegate the answer is yes.Invoking a delegate is thread-safe because delegates are immutable. However, you must make sure that a delegate exists first. This check may require some synchroniza
阅读全文
posted @
2013-06-07 17:25
Alan Yang
阅读(281)
推荐(0)
Random 种子问题
摘要:Random 种子问题From: http://www.cnblogs.com/shenqiboy/archive/2012/03/19/2405839.html1:随机数生成器类 Random 是 .NET 的伪随机数生成器,要生成各种类型的随机数,必须先得到它的实例对象,然后再生成随机数2:种子随机数的生成是从种子值开始。 如果反复使用同一个种子,就会生成相同的数字系列,产生不同序列的一种方法是使种子值与时间相关3:对象实例默认情况下,Random 类的无参数构造函数使用系统时钟生成其种子值参数化构造函数可提供一个 Int32 类型的数字为起始值4:生成方案方案1:只实例化一个对象,多次方
阅读全文
posted @
2012-12-05 10:34
Alan Yang
阅读(362)
推荐(0)
C# DataGridView样式 (蓝色)
摘要:代码:#region DataGridVeiw StyleSystem.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();this.DataGridView1.AllowUserToAddRows
阅读全文
posted @
2012-09-10 17:45
Alan Yang
阅读(740)
推荐(0)
set maxItemsInObjectGraph in client config [from Stackflow]
摘要:I am specifying maxItemsInObjectGraph in the server config file but while creating client config file, this attribute is ignored and i have to manually add it in the endpointBehaviors section.Is there a way i can make some changes in the config file so that everytime i generate client config and pro
阅读全文
posted @
2012-08-30 19:31
Alan Yang
阅读(379)
推荐(0)
WinForm打包(VS2008) --转
摘要:VS2008下打包WinForm程序From: http://www.cnblogs.com/Peter-Zhang/articles/1778223.html前提:要打包的WinForm已经编译完成。注:到对应应用程序文件目录下的bin文件夹中可以查看编译好的exe文件。1. 文件—> 新建—>项目在“新建项目”对话框选择“其他项目类型” 然后选择 “安装项目”,命名项目名,然后“确定”然后出现下图2. Application Folder 是安装程序之后,程序文件所在位置等信息,包含所有bin文件夹下Debug中的文件,将其全部加入“应用程序文件夹”。注:右击Applicati
阅读全文
posted @
2012-08-03 19:01
Alan Yang
阅读(210)
推荐(0)
Excel-SQL Server Import-Export using VBA
摘要:import-export-excel-sql-server-vba.zipIntroductionThis article describes a solution for Microsoft Excel-SQL Server import-export using VBA and ADO.There are two ways to import SQL Server data to Microsoft Excel using VBA:To create a QueryTable connected to a database table.To insert database data to
阅读全文
posted @
2012-04-25 18:17
Alan Yang
阅读(2467)
推荐(0)
C# WinForm开发系列 - 文章索引
摘要:C# WinForm开发系列 - 文章索引 Posted on 2009-06-14 10:20 peterzb 阅读(43143) 评论(102) 编辑 收藏 该系列主要整理收集在使用C#开发WinForm应用文章及相关代码, 平时看到大家主要使用C#来开发Asp.Net应用,这方面的文章也特别多,而关于WinForm的文章相对少很多,而自己对WinForm一直比较感兴趣,这几年积累收藏了不少文章,现在整理一下分类推荐给大家,避免大家浪费大把的时间去找这方面的资料,因为找资料也是一件很累的事情,Google,Baidu一下,不断的点击,不断翻阅大量的博客文章,查找自己所需的.这个系列初步打.
阅读全文
posted @
2012-04-20 15:38
Alan Yang
阅读(413)
推荐(0)
Message Authentication Failure : TimeStamp & Clock Skew Issue --Posted by intrepiddeveloper on August 24, 2008
摘要:Posted by intrepiddeveloper on August 24, 2008Source: http://intrepiddeveloper.wordpress.com/2008/08/24/message-authentication-failure-timestamp-clock-skew-issue/Recently I came across an interesting issue with service binding and message security in WCF. The service was hosted in IIS and used mess.
阅读全文
posted @
2012-03-08 17:17
Alan Yang
阅读(2680)
推荐(0)
Generating WCF Proxy using SvcUtil.exe
摘要:Generating WCF Proxy using SvcUtil.exe Visual Studio 2008 has made our WCF life a lot easier with the ability to self-host the services and also allow debugging in our service. What if we were pushed to a situation wherein we need to use the tool svcutil.exe to create our proxy for the client…hmm… .
阅读全文
posted @
2012-02-03 17:02
Alan Yang
阅读(312)
推荐(0)
Enums and Structs in C# [Author:Nishant Sivakumar]
摘要:http://www.codeproject.com/KB/cs/csenums01.aspxIntroductionJust about everything is a heap object when you are using C#. Only elementary native types like int are treated as value types. But there are two value types in C# that are pretty much more useful that first glances would tell you. They are.
阅读全文
posted @
2011-11-16 17:24
Alan Yang
阅读(310)
推荐(0)
常用的C#正则表达式! [转]
摘要:常用的C#正则表达式 "^\d+$" //非负整数(正整数 + 0) "^[0-9]*[1-9][0-9]*$" //正整数 "^((-\d+)|(0+))$" //非正整数(负整数 + 0) "^-[0-9]*[1-9][0-9]*$" //负整数 "^-?\d+$" //整数 "^\d+(\.\d+)?$" //非负浮点数(正浮点数 + 0) "^(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|(
阅读全文
posted @
2011-11-14 18:23
Alan Yang
阅读(236)
推荐(0)
NHibernate vs. Entity Framework 4.0 转
摘要:NHibernate vs. Entity Framework 4.0This is a question that I getveryfrequently, and I always tried to dodged the bullet, but I get it so much that I feel that I have to provide an answer. Obviously, I am (not so) slightly biased toward NHibernate, so while you read it, please keep it in mind.EF 4.0.
阅读全文
posted @
2011-04-14 16:42
Alan Yang
阅读(688)
推荐(0)
stdafx.h --- Standard Application Framework Extensions
摘要:当我们使用AppWizard来自动生成某些项目的时候,系统会自动把所需要include的头文件在stdafx.h中先include一下,这样,我们只需要直接include这个stdafx.h文件即可.因为同一个项目中的不同源文件CPP都包含相同的include文件,这样,为每个.CPP文件都重复include这些文件就显得很傻了。具体在stdafx.h中需要include什么头文件,取决于用户在AppWizard中的选择.比如:#include <afxwin.h> // MFC core and standard components#include <afxext.h&g
阅读全文
posted @
2011-04-08 10:08
Alan Yang
阅读(401)
推荐(0)
Code Project精彩系列(转)
摘要:Code Project精彩系列(转) Applications Crafting a C# forms Editor From scratch http://www.codeproject.com/csharp/SharpFormEditorDemo.asp 建立一个类似C#的环境, 实现控件拖拉,属性 Packet Capture and Analayzer 网络封包截获 http://www.codeproject.com/csharp/pacanal.asp A tool to change the default source control client 在一台机器上用不同的两个源
阅读全文
posted @
2011-03-23 15:54
Alan Yang
阅读(1239)
推荐(3)
复制一个资源文件并带comment列
摘要:string resourceBackUpName = this.GetResourceBackUpName(resxFilePath);//back up the res file File.Copy(resxFilePath, resourceBackUpName); ResXResourceReader reader = new ResXResourceReader(resourceBackUpName); reader.UseResXDataNodes = true; // set it for get comments ResXResourceWriter writer = new.
阅读全文
posted @
2011-03-17 20:14
Alan Yang
阅读(288)
推荐(0)
All-In-One Code Framework [一站式示例代码库] 【转】
摘要:All-In-One Code Framework [一站式示例代码库]2010 对一站式示例代码库,对奋战在一站式示例代码库上的每一位工程师来说都是不同寻常的一年。 在我们共同努力和开发社区的支持下,该项目从一年前的草根雏形,成长为CodePlex排名前三,含有500多代码示例的“微软示例代码库”。 在此辞旧迎新之际,项目组感谢开源社区及开发者社区伴随我们一路走过来。2011年,我们会做得更好,以回馈社区,回馈广大开发者。回顾20101) 215新示例,300K下载量,CodePlex前三2010 年,我们总共发布了215个新示例,总代码示例数过500。可以在http://1code.cod
阅读全文
posted @
2011-01-05 14:00
Alan Yang
阅读(251)
推荐(0)
NumberFormatInfo..::.CurrencyNegativePattern Property
摘要:This property has one of the values in the following table. The symbol "$" is the CurrencySymbol, the symbol "-" is the NegativeSign, and n is a number.Value Associated Pattern 0 ($n) 1 -$n 2 $-n 3 $n...
阅读全文
posted @
2010-11-30 15:16
Alan Yang
阅读(183)
推荐(0)
RunWorkerCompleted runs in worker thread
摘要:some problem with .net 2.0:In the application, a form subscribes a RunWorkerCompleted event of aBackgroundWorker. Suppose RunWorkerCompleted() is running in UI thread sosome code inside it will do for...
阅读全文
posted @
2010-11-02 17:30
Alan Yang
阅读(324)
推荐(0)