随笔 - 612, 文章 - 0, 评论 - 31, 阅读 - 74万

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

随笔分类 -  编程开发 - DotNET

摘要:using System;using System.Runtime.InteropServices;using System.Drawing;using System.Drawing.Imaging;namespace ScreenShotDemo{ /// /// Provides ... 阅读全文

posted @ 2015-12-01 15:50 eastson 阅读(251) 评论(0) 推荐(0) 编辑

摘要:RabbitMQ 是由 LShift 提供的一个 Advanced Message Queuing Protocol (AMQP) 的开源实现,由以高性能、健壮以及可伸缩性出名的 Erlang 写成,因此也是继承了这些优点。官网:http://www.rabbitmq.com/文档:http://w... 阅读全文

posted @ 2015-11-24 16:37 eastson 阅读(217) 评论(0) 推荐(0) 编辑

摘要:Quartz.NET是一个开源的作业调度框架,非常适合在平时的工作中,定时轮询数据库同步,定时邮件通知,定时处理数据等。Quartz.NET允许开发人员根据时间间隔(或天)来调度作业。它实现了作业和触发器的多对多关系,还能把多个作业与不同的触发器关联。整合了 Quartz.NET的应用程序可以重用来... 阅读全文

posted @ 2015-11-24 14:53 eastson 阅读(503) 评论(0) 推荐(0) 编辑

摘要:Topshelf是一个开源的跨平台的宿主服务框架,支持Windows和Mono,只需要几行代码就可以构建一个很方便使用的服务宿主。官网:http://topshelf-project.com/文档:https://topshelf.readthedocs.org/en/latest/代码:https... 阅读全文

posted @ 2015-11-24 13:57 eastson 阅读(149) 评论(0) 推荐(0) 编辑

摘要:I'm building this application in Visual Studio 2010 using C#.Basically there are 2 files, form1.cs (which is the windows form) and program.cs (where a... 阅读全文

posted @ 2015-10-28 16:01 eastson 阅读(273) 评论(0) 推荐(0) 编辑

摘要:可以直接在窗体的AcceptButton和CancelButton中设置相应的按钮。也可以在后头通过代码设置:this.AcceptButton = (IButtonControl)btnSave;this.CancelButton = (IButtonControl)btnCancel; 阅读全文

posted @ 2015-10-23 17:30 eastson 阅读(869) 评论(0) 推荐(0) 编辑

摘要:This example shows how to formatDateTimeusingString.Formatmethod. All formatting can be done also usingDateTime.ToStringmethod.Custom DateTime Formatt... 阅读全文

posted @ 2015-10-22 16:02 eastson 阅读(207) 评论(0) 推荐(0) 编辑

摘要:方法1:System.Diagnostics.Process.Start(System.Reflection.Assembly.GetExecutingAssembly().Location); //重新开启当前程序Close();//关闭当前程序方法2:System.Windows.Forms.... 阅读全文

posted @ 2015-10-20 11:54 eastson 阅读(305) 评论(0) 推荐(0) 编辑

摘要:在企业开发过程中经常会遇到文件的压缩与解压,虽然网上很多流行的压缩文件格式都是RAR的,但是由于RAR不是一个开放的标准,因此ZIP成了更多人的选择。如果你不想自己开发的话可以选择开源的项目,比如SharpZipLib就是一个不错的选择。using System;using System.Colle... 阅读全文

posted @ 2015-10-14 14:58 eastson 阅读(283) 评论(0) 推荐(0) 编辑

摘要:ADO.Net 在数据库操作过程中默认打开了连接池,不需要再进行手工配置。这个特性可以使数据库操作时效率提高,但也要有相应的代码配合,才能真正提高程序效率。1、连接字符串 ADO.Net 中的连接池大小可以通过数据库连接字符串来控制,例如: string cs = "server=.;uid=sa;... 阅读全文

posted @ 2015-10-14 11:49 eastson 阅读(175) 评论(0) 推荐(0) 编辑

摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.ComponentModel.Design;using System.Windows.Forms;namespace Samp... 阅读全文

posted @ 2015-10-08 17:31 eastson 阅读(336) 评论(0) 推荐(0) 编辑

摘要:原文地址:http://forums.lhotka.net/forums/p/3166/21214.aspxMytask is:For select client, I have a modal form (frmSelectClient) with grid. Datasourse for gri... 阅读全文

posted @ 2015-06-29 15:35 eastson 阅读(155) 评论(0) 推荐(0) 编辑

摘要:在使用.Net Framework编写窗体应用程序的时候,有时有需要响应窗体的按键消息。当窗体上没有任何其他控件的时候,窗体是可以直接响应这些消息的。但是当窗体上有其他控件时,会发现窗体再也不会响应这些消息了,因为这些消息都由其上的控件所处理掉并且不再发给父窗体。响应窗体上的按键消息是很有必要的。F... 阅读全文

posted @ 2015-06-24 13:20 eastson 阅读(215) 评论(0) 推荐(0) 编辑

摘要:n System.ComponentModel, there's a class called CancelEventArgs which contains a Cancel member that can be set in event listeners. The documentation o... 阅读全文

posted @ 2015-04-29 10:31 eastson 阅读(119) 评论(0) 推荐(0) 编辑

摘要:今天在使用DevExpress的BarManager菜单控件时,发现在进行继承时无法在继承的子类窗体中对其进行编辑与修改,另外像GridView也有类似的情形,后来查阅资料后,现在可通过DevExpress的设置解决此问题,方法为:开始->DevExpress X.XX->tools->WinFor... 阅读全文

posted @ 2015-02-06 09:46 eastson 阅读(408) 评论(1) 推荐(0) 编辑

摘要:namespace GridControlDemo{ class MyGridControl : GridControl { protected override BaseView CreateDefaultView() { return... 阅读全文

posted @ 2015-02-06 09:17 eastson 阅读(484) 评论(0) 推荐(0) 编辑

摘要:Question:I'm developing a C# component, I want to prevent the user from adding this component to the Form if the Form already has an instance of the c... 阅读全文

posted @ 2015-02-05 09:30 eastson 阅读(169) 评论(0) 推荐(0) 编辑

摘要:private void Form1_Load(object sender, EventArgs e){ if (!IsWin7()) { Application.Exit(); }}bool IsWin7(){ return Environment.OSVer... 阅读全文

posted @ 2015-01-06 08:15 eastson 阅读(368) 评论(0) 推荐(0) 编辑

摘要:private void SetKey(bool enableTaskManager){ using ( var mKey = Registry.CurrentUser.CreateSubKey("Software\\Microsoft\\Windows\\Curre... 阅读全文

posted @ 2015-01-05 16:50 eastson 阅读(269) 评论(0) 推荐(0) 编辑

摘要:方法一:if (System.Diagnostics.Process.GetCurrentProcess().ProcessName == "devenv")//...Then Continue方法二:if(System.ComponentModel.LicenseManager.UsageMode... 阅读全文

posted @ 2015-01-05 16:32 eastson 阅读(156) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示