自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(68)
  • 资源 (1)
  • 收藏
  • 关注

转载 中文输入法与控件处理

在客户使用软件的时候,反馈说有一些数字输入框、日期输入框,不支持键盘输入内容,经测试,确实是存在这个问题,默认的数字、日期等输入,都要切换输入法才可以输入,不能默认就支持数字的输入,那么是否有办法解决呢,当然办法总是有的。其实只需要设置 ImeMode=Off 即可解决问题,关于这个属性,大家可以参考下面的介绍。(就开发而言,记得逢数字,日期的控件,必须设置 ImeMode=Off ,否则你的

2013-07-12 13:46:39 290

原创 正则表达式

金额的正则表达(正数,最多两位小数)([1-9][0-9]*(\.\d{1,2})?)|(0\.\d{1,2})

2013-06-07 14:13:22 221

转载 linq的结果集变成DataTAble

public static DataTable LINQToDataTable(IEnumerable varlist)        {            DataTable dtReturn = new DataTable();            // column names             PropertyInfo[] oProps = null;

2013-03-28 11:04:49 296

转载 看进程是否死掉

using System;using System.Collections.Generic;using System.Text;using System.Diagnostics;namespace ConsoleApplication1{    class Program    {        public enum ProcessRespondingStat

2013-03-28 10:48:59 259

转载 不输密码直接启动

如何快速的进入Windows 2003操作系统呢?在本文中我们将介绍两种快速登陆Windows 2003操作系统的方法:   一种方法比较简单,您只需单击“开始|运行”,并在输入框中键入“control userpasswords2”,这样就可以在“用户账户”管理窗口中清除“要使用本机,用户必须输入密码”复选项的选中状态,然后按下键盘的“Ctrl+Shift+A”,将会得到一个“自动登录”的设

2013-03-28 09:56:31 233

转载 DEVExpress Report 调入报表与报表保存

1、报表文件的保存XtraReport1 report = new XtraReport1(); report.ShowPreviewDialog(); report.SaveLayout("C:\\abc.rep"); report.Dispose();  2、报表文件的读取DevExpress.XtraReports.UI.XtraReport report =

2013-03-28 08:49:08 346

转载 RegEx mask

There is no predefined mask for the behavior you described. However, you can use RegEx mask type with the edit mask: "\d{1,4}(\.\d+)?" to achieve it. If you also need negative numbers to be entered in

2012-07-13 13:16:50 170

转载 各种代码入口点

Borland Delphi 6.0 - 7.000509CB0 > $ 55 PUSH EBP00509CB1 . 8BEC MOV EBP,ESP00509CB3 . 83C4 EC ADD ESP,-1400509CB6 . 53 PUSH EBX00509CB7 . 56 PUSH ESI00509CB8 . 57 PUSH EDI00509CB9 . 33C0

2011-12-26 00:21:51 239

转载 行互列

--1、行互列--> --> (Roy)生成測試數據 if not object_id('Class') is null    drop table ClassGoCreate table Class([Student] nvarchar(2),[Course

2011-07-03 22:24:29 153

原创 ideenty 值处理

<br />set identity_insert table on<br />set identity_insert table off<br /> <br />dbcc checkident(bed,reseed,829)

2011-04-11 10:36:00 164

原创 钩子

<br />using System;<br />using System.Collections.Generic;<br />using System.Reflection;<br />using System.Runtime.InteropServices;<br />using System.Text;<br />using System.Windows.Forms;<br /><br />namespace Study<br />{<br />    //   <summary> <br />   

2010-11-29 20:37:00 163

原创 MEssage

在C#中采用的是事件驱动方式,但在我们使用的过程中,有时候通过调用系统原有的消息,处理起来会比较简单一些,特别是在处理与DLL文件的交互时,的确是非常的方便。    在C#中使用自定义消息      在C#中使用自定义消息非常简单,只需要下面几个简单的步骤就可以了: 1、  定义消息 定义消息的方法和VC中定义消息有一点点不同 比如在VC中申明一个自定义消息: #define WM_TEST WM_USER + 101 而在c#中消息需要定义成windows系统中的原始的16进制数字,比如自定义消息 pub

2010-10-19 11:34:00 175

原创 csproj

<br />  <Target Name="BeforeBuild" Inputs="Hello.ice" Outputs="generated/Hello.cs"><br />    <Exec Condition="Exists('D:/ZeroC/Ice-3.4.1/slice')" Command="D:/ZeroC/Ice-3.4.1/bin/slice2cs.exe  --Hello.ice" /><br />  </Target><br /> <br /> played around with

2010-09-28 14:01:00 255

原创 RowCellStyle

<br />     private void gridView13_RowCellStyle(object sender, DevExpress.XtraGrid.Views.Grid.RowCellStyleEventArgs e)<br />        {<br />            //if (e.RowHandle != gridView1.FocusedRowHandle &&((e.RowHandle % 2 == 0 && e.Column.VisibleIndex % 2 ==

2010-06-23 16:06:00 568

原创 IceGrid2

上面可以运行成 ICEGRID程序了。可以把上面的exe 发布成 windows 服务:1 . iceserviceinstall icegridregistry  config.grid   2. iceserviceinstall icegridnode D:/MyIceGrid/config.node

2010-06-09 21:14:00 493

原创 IceGrid1

关于什么是IceGrid,请参阅Ice-3.2.0文档或看这里。在这里,我将建立一个拥有一个registry和两个node的IceGrid,其中node1与registry运行在同一台计算机上(但不同进程,IP为192.168.3.95),node2运行在另一台计算机上(IP为192.168.3.68)。环境均为XP SP2+Ice 3.2.0。首先在D盘(可以任意)下建立目录MyIceGrid,再建立子目录db及db/registry和db/node1,以存放registry和node1的数据。将以下My

2010-06-09 21:07:00 969

原创 DoubleBufferListView

      class DoubleBufferListView : ListView         {            public DoubleBufferListView()            {                SetStyle(ControlStyles.DoubleBuffer | ControlStyles.OptimizedDoubleBuffer | C

2010-05-28 11:57:00 514

原创 MessageBox.Show

 1  MessageBox.Show("请选择出库日期!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error);2  (MessageBox.Show("确认删除选中的" + row.ToString() + "条记录吗?", "请确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) ==

2010-05-19 16:31:00 235

原创 lookupEdit null options

You have a few options:1. Add "All" to your data source before binding to the control. If the source is a DataTable, just insert a new row at the top of the DataTable, for instance. 2. Add a but

2010-05-18 09:53:00 262

原创 Reflection

using System;using System.Collections.Generic;using System.Linq;using System.Windows.Forms;using System.Reflection;namespace WindowsFormsApplication4{    public class MyClass    {        public  i

2010-05-16 23:55:00 170

原创 stream byte

Stream & Byte[] 在涉及IO操作时,Stream 和 Byte[] 是最常用的,以下就做一个简单纪录。Byte[]=====1. BitConverter将基础数据类型与字节数组相互转换。注意string不是基础类型,而且该方法在不同平台间传递可能有误。int i = 13;byte[] bs = BitConverter.GetBytes(i);Console.WriteL

2010-05-16 23:09:00 878 1

原创 数据库连接

        public static string connstring ="";        private static string getConnstring()        {            XmlDocument xmlDoc = new XmlDocument();            xmlDoc.Load("./user.config");          

2010-04-13 13:22:00 176

原创 到 下一个tab的控件

 if (msg.WParam.ToInt32() == (int)Keys.Enter)            {                //MessageBox.Show(this.txt_MEMO.Focused.ToString());                if (txt_MEMO.IsEditorActive)                {             

2010-04-13 09:02:00 225

原创 错误处理

     static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)        {            LogErr(e.Exception);            MessageBox.Show(e.Exception.Message, "异常",

2010-04-09 10:49:00 281

转载 Validating

您可能经常需要检查用户输入到 Windows 窗体中的信息是否有效。例如,如果您有一个电话号码的 TextBox 控件,则可以检查该控件是否只包含适当的字符(数字、括号和连字符等等)。通常,可使用正则表达式验证用户输入的数据。了解Validating之前,我们还需要了解焦点事件的顺序: 焦点事件按下列顺序发生: Enter //进入控件时发生 GotFocus //在控件接收焦点时

2010-03-12 10:34:00 993

原创 sqlserver 跨库拷贝数据

Create Procedure up_InsertData2@ID INTASBEGINDeclare @Name NVARCHAR(30)Declare @c1 NVARCHAR(30)Declare @c2 NVARCHAR(30)Declare @c3 NVARCHAR(30)Declare @c4 NVARCHAR(30)Declare tmpCur Cursor For Selec

2009-11-03 12:53:00 460

转载 没有找到MFC80D.DLL的解决方法

 没有找到MFC80D.DLL的解决方法问题出现在程序运行清单上,默认是"嵌入清单",清单文件是"$(IntDir)/$(TargetFileName).embed.manifest"。 调试程序运行时,不知道为什么却定位不到这个文件,我们如果手动把"程序名.embed.manifest"改为"程序名.manifest",调试程序即可定位到。 所以,需要更改默认项目的工程属性。工程

2009-10-29 10:06:00 260

原创 表的导入,导出

  if  exists (select * from dbo.sysobjects where id = object_id(N[dbo].[LibraryCheck]) and OBJECTPROPERTY(id, NIsUserTable) = 1)drop Table LibraryCheck; SELECT  * INTO LibraryCheck    FROM  OP

2009-09-10 11:20:00 138

原创 c# TreeView分布加载树

treeView 支持一次加入太多数据时太慢了,写了一个分布加入的: c# 的treeVeiw 前面的"+" "-" 以及线要重画,太慢了,就多写了两个函数,得到下下级,显示“+”    public GoodsSortList(String text)        {            InitializeComponent();            fillTree

2009-06-18 17:18:00 823

原创 HSVHistogram(c# 调用openCV画直方图)

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Drawing;using Emgu.CV;using Emgu.CV.UI;using Emgu.Util;using Emgu.CV.CvEnum;using System.Runtime.Intero

2009-06-02 17:10:00 5706 1

原创 c# 得到系统的system32目录

 直接用 System.Environment.SystemDirectory

2009-04-21 17:41:00 1232

原创 不用regsrv32.exe 而用c#程序注册 com 组件

using System;using System.Runtime.InteropServices;public static class ComUtils {  public static bool RegisterComComponent(string path) {    // Register COM component, false if not a COM component    I

2009-04-21 17:37:00 784

原创 "error LNK2019: 无法解析的外部符号" 的原因

error LNK2019: 无法解析的外部符号两种原因 1. lib 库没有加入,在vs2005中是 在项目-->属性页-->通用配置--->命令行中加入相应的lib库就可以了。

2009-04-16 10:32:00 400

原创 .net 中smartclient的介绍

智能客户端应用在富客户端的客户端中。智能客户端能够从认证的服务器上自动升级与部署,只要一次部署后,智能客户端程序可以自动从认证的服务器上升级到最新的版本。我们可以从两个方面使用这个功能。 1.       使用“Microsofts Updater Applications Block”包2.       ClickOnce 布署工具在.net2005中提供。 首先来说下Mi

2009-04-14 13:24:00 266

转载 linux + apache + php + mysql

网上有n多文章,多是马马虎虎,要么不写这样的配置参考,否则就写的明明白白。配置过程中,为了找资料,总是so啊so啊,很是头疼。下面是我的认真整理出来的资料,作为我的资料备份和对本文读者的参考。软件准备:1. Apache2.2.6 http://apache.mirror.phpchina.com/httpd/httpd-2.2.6.tar.gz2. PHP5.2.5 http://c

2008-10-06 11:34:00 307

原创 改变缓存目录

 一、修改 DiskPersistenceListener.java 文件: package com.jh.xh.hibernate.oscache; import com.opensymphony.oscache.plugins.diskpersistence.AbstractDiskPersistenceListener; publicclass DiskPersi

2008-03-09 13:43:00 298

原创 OSCache更新缓存

更新 public class OscacheTest extends TestCase {        private GeneralCacheAdministrator ca = new GeneralCacheAdministrator();           public void testFlush() {        

2008-03-09 13:42:00 531

原创 nutch-0.9(2)加入ICTCLAS 支持中文分词

a. 安装 svn , 从 apache 中下载这最新版本,(http://svn.apache.org/repos/asf/lucene/nutch/branches/branch-0.9/ )这样可以用ant工具进行编译,直接下载的包文件好不能用antb. 安装 ant. http://ant.apache.org/ 下载最新编译工具c. 安装 javacc  https://javacc.d

2007-06-05 09:43:00 3101 2

原创 nutch-0.9

浅入浅出nutch 0.9使用指南 for windows   Nutch 是一个搜索引擎,昨天刚从一个朋友那里知道,前一阵子接触了 lucene ,对搜索的东西跃跃欲试,趁着周末试用了一把,感觉蛮新鲜,网上的例子多是基于 0.7 版本的,找到了一些 0.8 的就是跑不起来,忽悠忽悠试了半天,写下一点感觉 ~~   系统环境: Tomcat 6.0.13/JDK1.6/nutch0

2007-05-21 14:40:00 2127

原创 apache + tomcat (1)

apache 2.0.59jdk 1.5.0mod_jk-apache-2.0.58.so 第一步 : 安装 apache 2.0.59 在 httpd.conf 中加入下面几行LoadModule jk_module modules/mod_jk-apache-2.0.58.soJkWorkersFile "C:/Java/Tomcat 5.5/conf/workers.

2006-11-23 15:26:00 729 1

DevExpress_13.1.7_Registration_Patch.rar

DevExpress_13.1.7_Registration_Patch.rar

2013-12-02

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除