导航

随笔分类 -  程序

程序
摘要:使用Topshelf创建Windows 服务简要的介绍了创建Windows服务的另一种方法,老外的一篇文章Create a .NET Windows Service in 5 steps with Topshelf通过5个步骤详细的介绍使用使用Topshelf创建Windows 服务。Topshelf是一个开源的跨平台的宿主服务框架,支持Windows和Mono,只需要几行代码就可以构建一个很方便使用的服务宿主。1、Topshelf的代码托管在http://topshelf-project.com/,可以在这里下载到最新的代码。2、使用Visual Studio创建一个控制台应用程序引用程序集 阅读全文

posted @ 2013-08-28 00:05 毅无涯 阅读(281) 评论(0) 推荐(0)

摘要:Have you got tired of attaching the Visual Studio debugger to theserviceapplication? I got the solution just for you! It’s a small helper class containing astaticmethod which you need to invoke.public static void Main(string[] argv){ // just include this check, "Service1" is the name of yo 阅读全文

posted @ 2013-08-28 00:00 毅无涯 阅读(195) 评论(0) 推荐(0)

摘要:今天写项目功能点时,遇到一个问题,DataGridViewTextBoxColumn 只能输入数值,并且格式化为 xxxxx.xx 两位小数. 想了很多方法,但只能是输入完后才验证,后来在网上搜了一下,找到了一个好的方法,经过修改后不错,现在我把它转换为VB.NET 语言,记录下来: Private _EditCell As DataGridViewTextBoxEditingContro... 阅读全文

posted @ 2009-03-24 22:02 毅无涯 阅读(301) 评论(0) 推荐(0)

摘要:今天在做测试时发现DataGridView 中添加了 DataGridViewComboboxColumn 绑定数据后不停地弹出错误窗口。经检测原来有个地方有点问题,现在和大家分享一下。 问题就出在这个绑定方法里。 private void BindData(){ InitComboboxSource(); InitGridSource(); this.dataGridV... 阅读全文

posted @ 2008-12-26 14:07 毅无涯 阅读(2505) 评论(0) 推荐(0)