Be a programmer

Live with passion....
  首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  .Net

摘要:DownloadYou can download the code from here: DataProvider.rar.You'll get all the classes used before, including: DataProviderBase.cs ITransactionSupport.cs SqlConnectionHolder.cs SqlDataProviderBa... 阅读全文

posted @ 2006-06-07 11:21 Programmer 阅读(539) 评论(0) 推荐(0)

摘要:SqlCommand.ExecuteReader & ParameterDirection.ReturnValueI've made a great mistake when using the SqlCommand.ExecuteReader method. As we know, the ParameterDirection.ReturnValue parameters cannot ... 阅读全文

posted @ 2006-06-07 09:55 Programmer 阅读(1778) 评论(4) 推荐(0)

摘要:SQL implementation of DataProviderBase: SqlDataProviderBaseThe SQLDataProviderBase class inherits from DataProviderBase class. It greatly simplifies program code required by a Microsoft SQL Server ope... 阅读全文

posted @ 2006-04-20 16:39 Programmer 阅读(797) 评论(3) 推荐(0)

摘要:The provider model is used throughout ASP.NET 2.0. It is a means of writing each of the technologies used so that new versions can easily be created and plugged in. For example, if you need to access ... 阅读全文

posted @ 2006-04-20 16:23 Programmer 阅读(1405) 评论(1) 推荐(0)

摘要:I developed a web application that uses SQL Server 2000 as the data store. It worked fine. However, when trying to debug the code to track down an error, I got exceptions:EXECUTE permission denied on ... 阅读全文

posted @ 2006-04-10 13:37 Programmer 阅读(2122) 评论(0) 推荐(0)

摘要:Download the code for this article: WinForm-Multilanguages-2.rar (11 KB).方法二:下面介绍一种只需对现有代码做较小改动的方法。在 Visual Studio 的设计视图中,如果在 Properties 窗口中改变了程序的默认界面语言(Language),我们会注意到无论是工程还是窗体对应的 .Designer.cs 文件都会有... 阅读全文

posted @ 2006-04-09 13:41 Programmer 阅读(4906) 评论(12) 推荐(0)

摘要:为我们的程序添加日志功能,使用 .net framework 中的 EventLog 类应该是一个不错的选择。在 .net framework 2.0 中,microsoft 又进一步丰富了 EventLog 类,使我们操作 windows 中的事件日志更方便。在操作事件源的时候,EventLog 类提供了三个方法:CreateEventSource, DeleteEventSource, Sou... 阅读全文

posted @ 2006-03-04 21:13 Programmer 阅读(1743) 评论(0) 推荐(0)

摘要:使用 .net 开发一个支持多语言的 WinForm 应用程序是很方便的。特别是在 .net framework 2.0 中,Visual Studio 2005 做了进一步的改进。它默认地为每个资源文件(.resx)添加一个叫 ResXFileCodeGenerator 的自定义工具来简化读取资源的操作。我们常用的一些软件,比如 BitComet、Skype 等都可以在菜单中设置界面显示的语言。... 阅读全文

posted @ 2006-03-04 19:48 Programmer 阅读(3128) 评论(3) 推荐(0)